public class BeatRootSpectralFluxOnsetDetector extends java.lang.Object implements AudioProcessor, OnsetDetector
A non real-time spectral flux onset detection method, as implemented in the BeatRoot system of Centre for Digital Music, Queen Mary, University of London.
This onset detection function does not, NOT work in real-time. It analyzes an audio-stream and detects onsets during a post processing step.
Modifier and Type | Field and Description |
---|---|
static int |
energyOversampleFactor
Ratio between rate of sampling the signal energy (for the amplitude envelope) and the hop size
|
static int |
normaliseMode
Determines method of normalization.
|
static double |
rangeThreshold
For dynamic range compression, this value is added to the log magnitude
in each frequency bin and any remaining negative values are then set to zero.
|
static double |
silenceThreshold
RMS frame energy below this value results in the frame being set to zero,
so that normalization does not have undesired side-effects.
|
Constructor and Description |
---|
BeatRootSpectralFluxOnsetDetector(AudioDispatcher d,
int fftSize,
int hopSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
process(AudioEvent audioEvent)
Process the audio event.
|
void |
processingFinished()
Notify the AudioProcessor that no more data is available and processing
has finished.
|
void |
setHandler(OnsetHandler handler) |
public static double silenceThreshold
public static double rangeThreshold
public static int normaliseMode
public static int energyOversampleFactor
public BeatRootSpectralFluxOnsetDetector(AudioDispatcher d, int fftSize, int hopSize)
public boolean process(AudioEvent audioEvent)
AudioProcessor
process
in interface AudioProcessor
audioEvent
- The audio event that contains audio data.public void setHandler(OnsetHandler handler)
setHandler
in interface OnsetDetector
public void processingFinished()
AudioProcessor
processingFinished
in interface AudioProcessor