comparison xtract/libxtract.h @ 104:a32738e9d955

- Fixes to descriptors.c where no break statement was given for certain cases is switch conditionals - Added LPC and LPCC extraction functions. LPC implements Durbin method as described in Rabiner and Juang and implemented in Dr. Dobbs 1994 edition by Jutta Degener
author Jamie Bullock <jamie@postlude.co.uk>
date Mon, 24 Dec 2007 13:21:13 +0000
parents ca40a0dc29d6
children f2af1c75e3ed
comparison
equal deleted inserted replaced
103:1cbbe5b5e461 104:a32738e9d955
54 * 54 *
55 * Defines a very simple API that provides access to the functions in the library 55 * Defines a very simple API that provides access to the functions in the library
56 * @{ 56 * @{
57 */ 57 */
58 58
59 #define XTRACT_FEATURES 54 59 #define XTRACT_FEATURES 56
60 60
61 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */ 61 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */
62 enum xtract_features_ { 62 enum xtract_features_ {
63 XTRACT_MEAN, 63 XTRACT_MEAN,
64 XTRACT_VARIANCE, 64 XTRACT_VARIANCE,
111 XTRACT_PEAK_SPECTRUM, 111 XTRACT_PEAK_SPECTRUM,
112 XTRACT_SPECTRUM, 112 XTRACT_SPECTRUM,
113 XTRACT_AUTOCORRELATION_FFT, 113 XTRACT_AUTOCORRELATION_FFT,
114 XTRACT_MFCC, 114 XTRACT_MFCC,
115 XTRACT_DCT, 115 XTRACT_DCT,
116 XTRACT_HARMONIC_SPECTRUM 116 XTRACT_HARMONIC_SPECTRUM,
117 XTRACT_LPC,
118 XTRACT_LPCC
117 }; 119 };
118 120
119 /** \brief Enumeration of feature initialisation functions */ 121 /** \brief Enumeration of feature initialisation functions */
120 enum xtract_feature_init_ { 122 enum xtract_feature_init_ {
121 XTRACT_INIT_MFCC = 100, 123 XTRACT_INIT_MFCC = 100,
196 XTRACT_SPECTRAL_HARMONICS, 198 XTRACT_SPECTRAL_HARMONICS,
197 /* N spectral harmonic amplitudes */ 199 /* N spectral harmonic amplitudes */
198 XTRACT_SPECTRAL_HARMONICS_MAGNITUDES, 200 XTRACT_SPECTRAL_HARMONICS_MAGNITUDES,
199 /* N spectral harmonic frequencies */ 201 /* N spectral harmonic frequencies */
200 XTRACT_SPECTRAL_HARMONICS_FREQUENCIES, 202 XTRACT_SPECTRAL_HARMONICS_FREQUENCIES,
203 XTRACT_AUTOCORRELATION_COEFFS,
201 XTRACT_ARBITRARY_SERIES, 204 XTRACT_ARBITRARY_SERIES,
202 XTRACT_AUDIO_SAMPLES, 205 XTRACT_AUDIO_SAMPLES,
203 XTRACT_MEL_COEFFS, 206 XTRACT_MEL_COEFFS,
207 XTRACT_LPC_COEFFS,
208 XTRACT_LPCC_COEFFS,
204 XTRACT_BARK_COEFFS, 209 XTRACT_BARK_COEFFS,
205 XTRACT_NO_DATA 210 XTRACT_NO_DATA
206 } xtract_vector_t; 211 } xtract_vector_t;
207 212
208 /** \brief Data structure containing useful information about functions provided by LibXtract. */ 213 /** \brief Data structure containing useful information about functions provided by LibXtract. */