Marsyas
0.6.0-alpha
|
Detects if input contains a onset point. More...
#include <PeakerOnset.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
void | myProcess (realvec &in, realvec &out) |
Processes data. | |
PeakerOnset (std::string name) | |
PeakerOnset (const PeakerOnset &a) | |
~PeakerOnset () |
Detects if input contains a onset point.
PeakerOnset is based on the onset peak picking algorithm presented in:
Dixon, S. (2006). Onset detection revisited. In Proc. International Conference on Digital Audio Effects (DAFx), Montreal, Canada.
It takes as input an onset function over time (i.e. a row vector with the times series of a onset function like flux) and evaluates a specific point for onset presence, as below:
Input = [zzzzzzzzzXyyy]
Point "X" at the input will be evaluated. The onsetWinSize control specifies a "look ahead" parameter, i.e. how many samples (represented above as "y") after "X" will be used for evaluating if it is an onset or not (i.e. look ahead samples).
Controls:
Definition at line 51 of file PeakerOnset.h.
PeakerOnset | ( | std::string | name | ) |
Definition at line 25 of file PeakerOnset.cpp.
PeakerOnset | ( | const PeakerOnset & | a | ) |
Definition at line 33 of file PeakerOnset.cpp.
~PeakerOnset | ( | ) |
Definition at line 44 of file PeakerOnset.cpp.
Implements MarSystem.
Definition at line 49 of file PeakerOnset.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 88 of file PeakerOnset.cpp.