diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2006-10-09 09:22:03 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2006-10-09 09:22:03 +0000 |
commit | c6e4f6421b2a72e33e21b53ee2838532d8958a8d (patch) | |
tree | c650474cd5f53e515f77d32ce961ed322dec960d /xtract | |
parent | 9bcdb2f6cb48da938975f618e36ebd54f67766cb (diff) | |
download | LibXtract-c6e4f6421b2a72e33e21b53ee2838532d8958a8d.tar.gz LibXtract-c6e4f6421b2a72e33e21b53ee2838532d8958a8d.tar.bz2 LibXtract-c6e4f6421b2a72e33e21b53ee2838532d8958a8d.zip |
Added f0 estimation (based on AMDF)
Diffstat (limited to 'xtract')
-rw-r--r-- | xtract/libxtract.h | 3 | ||||
-rw-r--r-- | xtract/xtract_scalar.h | 5 |
2 files changed, 6 insertions, 2 deletions
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); |