From c6e4f6421b2a72e33e21b53ee2838532d8958a8d Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Mon, 9 Oct 2006 09:22:03 +0000 Subject: Added f0 estimation (based on AMDF) --- xtract/libxtract.h | 3 ++- xtract/xtract_scalar.h | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'xtract') diff --git a/xtract/libxtract.h b/xtract/libxtract.h index c9e43d2..9ab0663 100644 --- a/xtract/libxtract.h +++ b/xtract/libxtract.h @@ -109,7 +109,8 @@ enum return_codes_ { SUCCESS, MALLOC_FAILED, BAD_ARGV, - BAD_VECTOR_SIZE + BAD_VECTOR_SIZE, + NO_RESULT }; /** diff --git a/xtract/xtract_scalar.h b/xtract/xtract_scalar.h index bea7298..96969bd 100644 --- a/xtract/xtract_scalar.h +++ b/xtract/xtract_scalar.h @@ -288,8 +288,11 @@ int xtract_hps(float *data, int N, void *argv, float *result); * * \param *data: a pointer to the first element in an array of floats representing an audio vector * \param N: the number of elements to be considered - * \param *argv: a pointer to NULL + * \param *argv: a pointer to a float representing the sample rate of the vector * \param *result: the pitch of N values from the array pointed to by *data + * + * This algorithm is based on the AMDF and would benefit from further refinement + * */ int xtract_f0(float *data, int N, void *argv, float *result); -- cgit v1.2.3