com.meapsoft
Class DpweOnsetDetector
java.lang.Object
com.meapsoft.OnsetDetector
com.meapsoft.DpweOnsetDetector
- All Implemented Interfaces:
- FrameListener
- Direct Known Subclasses:
- DpweBeatOnsetDetector
- public class DpweOnsetDetector
- extends OnsetDetector
Method Summary |
protected void |
checkOnsets()
|
void |
newFrame(STFT stft,
long newestFrame)
Computes the onset detection function in real time as the STFT
gets new frames. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
onsetFunction
protected double[] onsetFunction
silenceThresh
protected double silenceThresh
DpweOnsetDetector
public DpweOnsetDetector(STFT stft,
long numFrames,
double thresh)
DpweOnsetDetector
public DpweOnsetDetector(STFT stft,
long numFrames,
double thresh,
double smt)
newFrame
public void newFrame(STFT stft,
long newestFrame)
- Computes the onset detection function in real time as the STFT
gets new frames. Once the final frame is reached, look for
onsets in the detection function.
- Specified by:
newFrame
in interface FrameListener
- Overrides:
newFrame
in class OnsetDetector
checkOnsets
protected void checkOnsets()