comparison xtract/xtract_scalar.h @ 5:cac976b2a69d

Changed xtract_f0 to xtract_lowest_match
author Jamie Bullock <jamie@postlude.co.uk>
date Thu, 05 Oct 2006 16:59:51 +0000
parents 819937ea6359
children 81eb5810a301
comparison
equal deleted inserted replaced
4:46efa5536d04 5:cac976b2a69d
254 * \param *argv: a pointer to NULL 254 * \param *argv: a pointer to NULL
255 * \param *result: the Slope of N values from the array pointed to by *data 255 * \param *result: the Slope of N values from the array pointed to by *data
256 */ 256 */
257 int xtract_slope(float *data, int N, void *argv, float *result); 257 int xtract_slope(float *data, int N, void *argv, float *result);
258 258
259 /** \brief Extract the value of the first partial in an input vector 259 /** \brief Extract the value of the first partial in an input vector that closely matches a certain 'guess'
260 * 260 *
261 * \param *data: a pointer to the first element in an array of floats that represents the frequencies of the spectral peaks of an audio vector 261 * \param *data: a pointer to the first element in an array of floats that represents the frequencies of the spectral peaks of an audio vector
262 * \param N: the number of elements to be considered 262 * \param N: the number of elements to be considered
263 * \param *argv: a pointer to a float value representing the approximate F0 263 * \param *argv: a pointer to a float value representing the guess
264 * \param *result: the F0 of N values from the array pointed to by *data 264 * \param *result: the F0 of N values from the array pointed to by *data
265 * 265 *
266 * This method takes a guess which can come from taking the ZCR of an autocorrelation function, and then finds the spectral peak that most closely matches the gess */ 266 * This method takes a guess which can come from taking the ZCR of an autocorrelation function, and then finds the spectral peak that most closely matches the gess */
267 int xtract_lowest_match(float *data, int N, void *argv, float *result);
268
269 /** \brief Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis
270 *
271 * \param *data: a pointer to the first element in an array of floats representing the magnitude spectrum of an audio vector
272 * \param N: the number of elements to be considered
273 * \param *argv: a pointer to NULL
274 * \param *result: the pitch of N values from the array pointed to by *data
275 */
276 int xtract_hps(float *data, int N, void *argv, float *result);
277
278 /** \brief Extract the fundamental frequency of an input vector
279 *
280 * \param *data: a pointer to the first element in an array of floats representing an audio vector
281 * \param N: the number of elements to be considered
282 * \param *argv: a pointer to NULL
283 * \param *result: the pitch of N values from the array pointed to by *data
284 */
267 int xtract_f0(float *data, int N, void *argv, float *result); 285 int xtract_f0(float *data, int N, void *argv, float *result);
268
269 /** \brief Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis
270 *
271 * \param *data: a pointer to the first element in an array of floats representing the magnitude spectrum of an audio vector
272 * \param N: the number of elements to be considered
273 * \param *argv: a pointer to NULL
274 * \param *result: the pitch of N values from the array pointed to by *data
275 */
276 int xtract_hps(float *data, int N, void *argv, float *result);
277 286
278 #ifdef __cplusplus 287 #ifdef __cplusplus
279 } 288 }
280 #endif 289 #endif
281 290