com.meapsoft
Class DpweOnsetDetector

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

public class DpweOnsetDetector
extends OnsetDetector


Field Summary
protected  double[] onsetFunction
           
protected  double silenceThresh
           
 
Constructor Summary
DpweOnsetDetector(STFT stft, long numFrames, double thresh)
           
DpweOnsetDetector(STFT stft, long numFrames, double thresh, double smt)
           
 
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 com.meapsoft.OnsetDetector
addOnsetListener, checkOnsets, notifyListeners, removeOnsetListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

onsetFunction

protected double[] onsetFunction

silenceThresh

protected double silenceThresh
Constructor Detail

DpweOnsetDetector

public DpweOnsetDetector(STFT stft,
                         long numFrames,
                         double thresh)

DpweOnsetDetector

public DpweOnsetDetector(STFT stft,
                         long numFrames,
                         double thresh,
                         double smt)
Method Detail

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()