Mercurial > hg > libxtract
comparison xtract/xtract_scalar.h @ 161:246c203cc733
Add wavelet-based pitch tracker
author | Jamie Bullock <jamie@jamiebullock.com> |
---|---|
date | Fri, 31 May 2013 22:44:03 +0100 |
parents | 9283aaf1ffb8 |
children | 63ec44da1666 |
comparison
equal
deleted
inserted
replaced
160:f7d0b6607193 | 161:246c203cc733 |
---|---|
414 * This function wraps xtract_f0, but provides the frequency of the lowest partial in the peak spectrum if f0 can't be found. | 414 * This function wraps xtract_f0, but provides the frequency of the lowest partial in the peak spectrum if f0 can't be found. |
415 * | 415 * |
416 */ | 416 */ |
417 int xtract_failsafe_f0(const double *data, const int N, const void *argv, double *result); | 417 int xtract_failsafe_f0(const double *data, const int N, const void *argv, double *result); |
418 | 418 |
419 /** \brief Extract the fundamental frequency of an input vector using wavelet-based method | |
420 * | |
421 * \param *data: a pointer to the first element in an array of doubles representing an audio vector | |
422 * \param N: the number of elements to be considered | |
423 * \param *argv: a pointer to a double representing the audio sample rate | |
424 * \param *result: the pitch of N values from the array pointed to by *data | |
425 * | |
426 * This function uses the time-domain wavelet-based method described in Larson and Maddox (2005) and | |
427 * implemented in the dywapitchtrack library | |
428 * | |
429 * xtract_init_wavelet_f0_state() must be called exactly once prior to calling xtract_wavelet_f0() | |
430 * | |
431 */ | |
432 int xtract_wavelet_f0(const double *data, const int N, const void *argv, double *result); | |
433 | |
419 /** \brief Extract the number of non-zero elements in an input vector | 434 /** \brief Extract the number of non-zero elements in an input vector |
420 * | 435 * |
421 * \param *data: a pointer to the first element in an array of doubles | 436 * \param *data: a pointer to the first element in an array of doubles |
422 * \param N: the number of elements to be considered | 437 * \param N: the number of elements to be considered |
423 * \param *argv: not used | 438 * \param *argv: not used |