com.meapsoft
Class OnsetDetector

java.lang.Object
  extended bycom.meapsoft.OnsetDetector
All Implemented Interfaces:
FrameListener
Direct Known Subclasses:
DpweOnsetDetector

public class OnsetDetector
extends java.lang.Object
implements FrameListener


Constructor Summary
OnsetDetector(STFT stft, double bandThresh, double bandFrac)
           
 
Method Summary
 void addOnsetListener(OnsetListener listener)
           
 void checkOnsets(long lastSeen, long newestFrame)
           
 void newFrame(STFT stft, long newestFrame)
           
protected  void notifyListeners(long frAddr, int zeroFrames)
           
 void removeOnsetListener(OnsetListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnsetDetector

public OnsetDetector(STFT stft,
                     double bandThresh,
                     double bandFrac)
Method Detail

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)