aubio 0.3.2
Functions
pitchyin.h File Reference

Pitch detection using the YIN algorithm. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void aubio_pitchyin_diff (fvec_t *input, fvec_t *yinbuf)
 compute difference function
void aubio_pitchyin_getcum (fvec_t *yinbuf)
 in place computation of the YIN cumulative normalised function
uint_t aubio_pitchyin_getpitch (fvec_t *yinbuf)
 detect pitch in a YIN function
smpl_t aubio_pitchyin_getpitchfast (fvec_t *input, fvec_t *yinbuf, smpl_t tol)
 fast implementation of the YIN algorithm

Detailed Description

Pitch detection using the YIN algorithm.

This algorithm was developped by A. de Cheveigne and H. Kawahara and published in:

De Cheveigné, A., Kawahara, H. (2002) "YIN, a fundamental frequency estimator for speech and music", J. Acoust. Soc. Am. 111, 1917-1930.

see http://recherche.ircam.fr/equipes/pcm/pub/people/cheveign.html


Function Documentation

void aubio_pitchyin_diff ( fvec_t input,
fvec_t yinbuf 
)

compute difference function

Parameters:
inputinput signal
yinbufoutput buffer to store difference function (half shorter than input)
void aubio_pitchyin_getcum ( fvec_t yinbuf)

in place computation of the YIN cumulative normalised function

Parameters:
yinbufinput signal (a square difference function), also used to store function
uint_t aubio_pitchyin_getpitch ( fvec_t yinbuf)

detect pitch in a YIN function

Parameters:
yinbufinput buffer as computed by aubio_pitchyin_getcum
smpl_t aubio_pitchyin_getpitchfast ( fvec_t input,
fvec_t yinbuf,
smpl_t  tol 
)

fast implementation of the YIN algorithm

Parameters:
inputinput signal
yinbufinput buffer used to compute the YIN function
toltolerance parameter for minima selection [default 0.15]
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines