Mercurial > hg > libxtract
comparison xtract/xtract_scalar.h @ 117:2b2d0609e44f
Fixed bug in peak interpolation algorithm in xtract_peak_spectrum()
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Sun, 04 May 2008 11:02:40 +0000 |
parents | 859495925633 |
children | efb1c1ae2ba8 |
comparison
equal
deleted
inserted
replaced
116:859495925633 | 117:2b2d0609e44f |
---|---|
392 * \param N: the number of elements to be considered | 392 * \param N: the number of elements to be considered |
393 * \param *argv: a pointer to a float representing the audio sample rate | 393 * \param *argv: a pointer to a float representing the audio sample rate |
394 * \param *result: the pitch of N values from the array pointed to by *data | 394 * \param *result: the pitch of N values from the array pointed to by *data |
395 * | 395 * |
396 * This algorithm is based on the AMDF, with peak and centre clipping. It would benefit from further improvements to improve noise robustness and overall efficiency | 396 * This algorithm is based on the AMDF, with peak and centre clipping. It would benefit from further improvements to improve noise robustness and overall efficiency |
397 * | |
398 * It is based on suggestion by Robert Bristow-Johnson in a discussion on the comp.dsp mailing list, subject "Reference implementation of pitch detection" | |
397 * | 399 * |
398 */ | 400 */ |
399 int xtract_f0(const float *data, const int N, const void *argv, float *result); | 401 int xtract_f0(const float *data, const int N, const void *argv, float *result); |
400 | 402 |
401 /** \brief Extract the fundamental frequency of an input vector | 403 /** \brief Extract the fundamental frequency of an input vector |