#include <yinacf.h>
Complete Yin algorithm as described by A. de Cheveigne and H. Kawahara in YIN, a fundamental frequency estimator for speech and music, J. Acoust. Soc. Am. 111, 1917-1930.
According to the author, this algorithm works best with low-pass prefiltering at 1000 Hz, although it will function really well without.
This particular implementation will function in real time with sample rates of up to 20 kHz
Definition at line 57 of file yinacf.h.
Public Member Functions | |
YinACF () | |
~YinACF () | |
bool | build (unsigned windowSize, unsigned tmax) |
void | destroy () |
void | reset () |
virtual Sample | tick (const Sample &s) |
unsigned | getLatency () const |
unsigned | getWindowSize () const |
const Sample * | getDiff (int offset=0) const |
const Sample * | getCMNDiff (int offset=0) const |
const | getFrequency (int offset=0) const |
Sample | getThreshold () const |
void | setThreshold (const Sample &threshold) |
unsigned | getMaxPeriod () const |
|
builds an uninitialized YinACF object. Builds an uninitialized YinACF object. The object must be initialized by a call to build() before use.
|
|
destructor. Destroys the YinACF object. |
|
initializes the object before use. Initializes the YinACF object for use.
|
|
frees memory. Frees the memory allocated by build().
|
|
returns a solution's cumulative mean difference function. Returns a solution's cumulative mean difference function. This function is provided for debugging and visualiation of the cumulative mean difference function at a point in time.
|
|
returns a solution's difference function. Returns a solution's difference function. This function is provided for debugging and visualiation of the difference function at a point in time.
|
|
returns a solution's calculated frequency. Returns a solution's calculated frequency. This function is provided for debugging and visualiation of the calculated frequency at a point in time.
|
|
returns algorithm latency. Returns the latency of the algorithm in samples.
|
|
returns TMAX. Returns TMAX.
|
|
returns the treshold used by getDip().
The threshold used by getDip(), its default value is
|
|
returns window size. Returns the window size in samples.
|
|
clears buffers.
Clears all buffers to |
|
changes the treshold used by getDip().
Modigfies the threshold used by getDip(), its default value is |
|
processes sample. Processes signal data.
|