com.meapsoft
Class OnsetDetector
java.lang.Object
com.meapsoft.OnsetDetector
- All Implemented Interfaces:
- FrameListener
- Direct Known Subclasses:
- DpweOnsetDetector
- public class OnsetDetector
- extends java.lang.Object
- implements FrameListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnsetDetector
public OnsetDetector(STFT stft,
double bandThresh,
double bandFrac)
addOnsetListener
public void addOnsetListener(OnsetListener listener)
removeOnsetListener
public void removeOnsetListener(OnsetListener listener)
notifyListeners
protected void notifyListeners(long frAddr,
int zeroFrames)
newFrame
public void newFrame(STFT stft,
long newestFrame)
- Specified by:
newFrame
in interface FrameListener
checkOnsets
public void checkOnsets(long lastSeen,
long newestFrame)