comparison xtract/xtract_scalar.h @ 197:02b7b3f96713

updated documentation for xtract_hps
author Sean Enderby <sean.enderby@gmail.com>
date Mon, 17 Feb 2014 11:33:23 +0000
parents bb60691d9570
children f6fcf3bec020 62e797c2974a
comparison
equal deleted inserted replaced
196:e764049c0a82 197:02b7b3f96713
384 */ 384 */
385 int xtract_sum(const double *data, const int N, const void *argv, double *result); 385 int xtract_sum(const double *data, const int N, const void *argv, double *result);
386 386
387 /** \brief Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis 387 /** \brief Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis
388 * 388 *
389 * \warning {This function doesn't work properly} 389 * \param *data: a pointer to the first element in an array of doubles representing the spectrum of an audio vector (e.g. *result from xtract_spectrum). It is expected that the first half of the array pointed to by *data will contain amplitudes for each frequecy bin, and the second half will contain the respective frequencies
390 * 390 * \param N: The length of the vector pointed to by *data.
391 * \param *data: a pointer to the first element in an array of doubles representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
392 * \param N: the number of elements to be considered
393 * \param *argv: a pointer to NULL 391 * \param *argv: a pointer to NULL
394 * \param *result: the pitch of N values from the array pointed to by *data 392 * \param *result: the pitch of N values from the array pointed to by *data
395 */ 393 */
396 int xtract_hps(const double *data, const int N, const void *argv, double *result); 394 int xtract_hps(const double *data, const int N, const void *argv, double *result);
397 395