64 #include "xtract_types.h"
74 #define XTRACT_FEATURES 62
80 XTRACT_STANDARD_DEVIATION,
81 XTRACT_AVERAGE_DEVIATION,
85 XTRACT_SPECTRAL_VARIANCE,
86 XTRACT_SPECTRAL_STANDARD_DEVIATION,
88 XTRACT_SPECTRAL_SKEWNESS,
89 XTRACT_SPECTRAL_KURTOSIS,
90 XTRACT_SPECTRAL_CENTROID,
91 XTRACT_IRREGULARITY_K,
92 XTRACT_IRREGULARITY_J,
106 XTRACT_RMS_AMPLITUDE,
107 XTRACT_SPECTRAL_INHARMONICITY,
109 XTRACT_ODD_EVEN_RATIO,
111 XTRACT_SPECTRAL_SLOPE,
113 XTRACT_HIGHEST_VALUE,
115 XTRACT_NONZERO_COUNT,
125 XTRACT_DIFFERENCE_VECTOR,
126 XTRACT_AUTOCORRELATION,
129 XTRACT_BARK_COEFFICIENTS,
130 XTRACT_PEAK_SPECTRUM,
132 XTRACT_AUTOCORRELATION_FFT,
135 XTRACT_HARMONIC_SPECTRUM,
146 XTRACT_INIT_MFCC = 100,
164 enum xtract_lnorm_filter_types_ {
165 XTRACT_NO_LNORM_FILTER,
166 XTRACT_POSITIVE_SLOPE,
167 XTRACT_NEGATIVE_SLOPE
173 XTRACT_MALLOC_FAILED,
175 XTRACT_BAD_VECTOR_SIZE,
177 XTRACT_DENORMAL_FOUND,
179 XTRACT_FEATURE_NOT_IMPLEMENTED,
180 XTRACT_ARGUMENT_ERROR
185 XTRACT_MAGNITUDE_SPECTRUM,
186 XTRACT_LOG_MAGNITUDE_SPECTRUM,
187 XTRACT_POWER_SPECTRUM,
188 XTRACT_LOG_POWER_SPECTRUM
193 XTRACT_OCTAVE_SUBBANDS,
194 XTRACT_LINEAR_SUBBANDS
209 XTRACT_ANY_AMPLITUDE_HERTZ,
231 XTRACT_BARTLETT_HANN,
234 XTRACT_BLACKMAN_HARRIS
242 XTRACT_SPECTRAL_MAGNITUDES,
245 XTRACT_SPECTRAL_PEAKS,
247 XTRACT_SPECTRAL_PEAKS_MAGNITUDES,
249 XTRACT_SPECTRAL_PEAKS_FREQUENCIES,
252 XTRACT_SPECTRAL_HARMONICS,
254 XTRACT_SPECTRAL_HARMONICS_MAGNITUDES,
256 XTRACT_SPECTRAL_HARMONICS_FREQUENCIES,
257 XTRACT_AUTOCORRELATION_COEFFS,
258 XTRACT_ARBITRARY_SERIES,
259 XTRACT_AUDIO_SAMPLES,
274 char name[XTRACT_MAX_NAME_LENGTH];
275 char p_name[XTRACT_MAX_NAME_LENGTH];
276 char desc[XTRACT_MAX_DESC_LENGTH];
277 char p_desc[XTRACT_MAX_DESC_LENGTH];
278 char author[XTRACT_MAX_AUTHOR_LENGTH];
291 double min[XTRACT_MAXARGS];
292 double max[XTRACT_MAXARGS];
293 double def[XTRACT_MAXARGS];
295 int donor[XTRACT_MAXARGS];
366 extern int(*xtract[XTRACT_FEATURES])(
const double *data,
const int N,
const void *argv,
double *result);
383 int xtract_init_mfcc(
int N,
double nyquist,
int style,
double freq_min,
double freq_max,
int freq_bands,
double **fft_tables);
struct _xtract_function_descriptor xtract_function_descriptor_t
Data structure containing useful information about functions provided by LibXtract.
enum xtract_vector_ xtract_vector_t
Enumeration of vector format types.
xtract_return_codes_
Enumeration of return codes.
Definition: libxtract.h:171
xtract_features_
Enumeration of features, elements are used as indixes to an array of pointers to feature extracton fu...
Definition: libxtract.h:77
int xtract_init_mfcc(int N, double nyquist, int style, double freq_min, double freq_max, int freq_bands, double **fft_tables)
A function to initialise a mel filter bank.
int xtract_init_bark(int N, double sr, int *band_limits)
A function to initialise bark filter bounds.
void xtract_free_window(double *window)
Free a window as allocated by xtract_make_window()
xtract_spectrum_
Enumeration of spectrum types.
Definition: libxtract.h:184
type_
Enumeration of data types.
Definition: libxtract.h:198
int xtract_init_fft(int N, int feature_name)
An initialisation function for functions using FFT.
struct xtract_mel_filter_ xtract_mel_filter
A structure to store a set of n_filters Mel filters.
xtract_bool_t
Boolean.
Definition: libxtract.h:219
A structure to store a set of n_filters Mel filters.
Definition: libxtract.h:374
enum type_ xtract_type_t
Enumeration of data types.
int xtract_init_wavelet_f0_state(void)
An array of pointers to functions that perform the extraction.
xtract_feature_types_
Enumeration of feature types.
Definition: libxtract.h:152
unit_
Enumeration of units.
Definition: libxtract.h:206
double * xtract_init_window(const int N, const int type)
Make a window of a given type and return a pointer to it.
xtract_feature_init_
Enumeration of feature initialisation functions.
Definition: libxtract.h:145
Data structure containing useful information about functions provided by LibXtract.
Definition: libxtract.h:269
void xtract_free_fft(void)
Free memory used for fft plans.
xtract_subband_scales_
Subband scales.
Definition: libxtract.h:192
xtract_mfcc_types_
Enumeration of mfcc types.
Definition: libxtract.h:159
enum unit_ xtract_unit_t
Enumeration of units.
xtract_vector_
Enumeration of vector format types.
Definition: libxtract.h:238
xtract_window_types_
Window types.
Definition: libxtract.h:225