Mercurial > hg > libxtract
comparison xtract/xtract_scalar.h @ 12:1aec087ddfca
Added f0 estimation (based on AMDF)
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Mon, 09 Oct 2006 09:22:03 +0000 |
parents | 81eb5810a301 |
children | 8b8d4f1c5fb6 |
comparison
equal
deleted
inserted
replaced
11:81eb5810a301 | 12:1aec087ddfca |
---|---|
286 | 286 |
287 /** \brief Extract the fundamental frequency of an input vector | 287 /** \brief Extract the fundamental frequency of an input vector |
288 * | 288 * |
289 * \param *data: a pointer to the first element in an array of floats representing an audio vector | 289 * \param *data: a pointer to the first element in an array of floats representing an audio vector |
290 * \param N: the number of elements to be considered | 290 * \param N: the number of elements to be considered |
291 * \param *argv: a pointer to NULL | 291 * \param *argv: a pointer to a float representing the sample rate of the vector |
292 * \param *result: the pitch of N values from the array pointed to by *data | 292 * \param *result: the pitch of N values from the array pointed to by *data |
293 * | |
294 * This algorithm is based on the AMDF and would benefit from further refinement | |
295 * | |
293 */ | 296 */ |
294 int xtract_f0(float *data, int N, void *argv, float *result); | 297 int xtract_f0(float *data, int N, void *argv, float *result); |
295 | 298 |
296 #ifdef __cplusplus | 299 #ifdef __cplusplus |
297 } | 300 } |