diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2006-12-09 15:21:35 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2006-12-09 15:21:35 +0000 |
commit | 9636bf2fdb2cdb27483b47d9ab6b238a25d374d5 (patch) | |
tree | 483aae427b64d66fcf3e06328f5ba6d60625eed8 /xtract/libxtract.h | |
parent | 8c199a3c2e5107a51f048d48bc581c9961d70373 (diff) | |
download | LibXtract-9636bf2fdb2cdb27483b47d9ab6b238a25d374d5.tar.gz LibXtract-9636bf2fdb2cdb27483b47d9ab6b238a25d374d5.tar.bz2 LibXtract-9636bf2fdb2cdb27483b47d9ab6b238a25d374d5.zip |
Implemented xtract_harmonics
Diffstat (limited to 'xtract/libxtract.h')
-rw-r--r-- | xtract/libxtract.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/xtract/libxtract.h b/xtract/libxtract.h index 6e76ff3..489cddf 100644 --- a/xtract/libxtract.h +++ b/xtract/libxtract.h @@ -53,7 +53,7 @@ extern "C" { * @{ */ -#define XTRACT_FEATURES 43 +#define XTRACT_FEATURES 44 #define LOG_LIMIT 10e-10 #define VERY_BIG_NUMBER 2e10 @@ -104,7 +104,8 @@ enum features_ { MAGNITUDE_SPECTRUM, AUTOCORRELATION_FFT, MFCC, - DCT + DCT, + HARMONICS }; /** \brief Enumeration of feature types */ @@ -126,7 +127,8 @@ enum return_codes_ { MALLOC_FAILED, BAD_ARGV, BAD_VECTOR_SIZE, - NO_RESULT + NO_RESULT, + FEATURE_NOT_IMPLEMENTED }; /** @@ -178,12 +180,18 @@ printf("Mean = %.2f\n", mean); #ifdef XTRACT extern int(*xtract[XTRACT_FEATURES])(float *data, int N, void *argv, float *result); - /** \brief An array of pointers to function help strings * * Defined in libxtract.c. As a minimum this will contain pointers to the names of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary. */ extern char *xtract_help_strings[XTRACT_FEATURES]; + +/** \brief An array of pointers to strings giving function output units + * + * Defined in libxtract.c. This contains pointers to strings giving the output units of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary. + */ +extern char *xtract_units[XTRACT_FEATURES]; + #endif /** \brief A structure to store a set of n_filters Mel filters */ |