Go to the documentation of this file.
61 #include "xtract_types.h"
71 #define XTRACT_FEATURES 60
77 XTRACT_STANDARD_DEVIATION,
78 XTRACT_AVERAGE_DEVIATION,
82 XTRACT_SPECTRAL_VARIANCE,
83 XTRACT_SPECTRAL_STANDARD_DEVIATION,
84 XTRACT_SPECTRAL_AVERAGE_DEVIATION,
85 XTRACT_SPECTRAL_SKEWNESS,
86 XTRACT_SPECTRAL_KURTOSIS,
87 XTRACT_SPECTRAL_CENTROID,
88 XTRACT_IRREGULARITY_K,
89 XTRACT_IRREGULARITY_J,
103 XTRACT_RMS_AMPLITUDE,
104 XTRACT_SPECTRAL_INHARMONICITY,
106 XTRACT_ODD_EVEN_RATIO,
108 XTRACT_SPECTRAL_SLOPE,
110 XTRACT_HIGHEST_VALUE,
112 XTRACT_NONZERO_COUNT,
120 XTRACT_DIFFERENCE_VECTOR,
121 XTRACT_AUTOCORRELATION,
124 XTRACT_BARK_COEFFICIENTS,
125 XTRACT_PEAK_SPECTRUM,
127 XTRACT_AUTOCORRELATION_FFT,
130 XTRACT_HARMONIC_SPECTRUM,
140 XTRACT_INIT_MFCC = 100,
158 enum xtract_lnorm_filter_types_ {
159 XTRACT_NO_LNORM_FILTER,
160 XTRACT_POSITIVE_SLOPE,
161 XTRACT_NEGATIVE_SLOPE
167 XTRACT_MALLOC_FAILED,
169 XTRACT_BAD_VECTOR_SIZE,
170 XTRACT_DENORMAL_FOUND,
172 XTRACT_FEATURE_NOT_IMPLEMENTED
177 XTRACT_MAGNITUDE_SPECTRUM,
178 XTRACT_LOG_MAGNITUDE_SPECTRUM,
179 XTRACT_POWER_SPECTRUM,
180 XTRACT_LOG_POWER_SPECTRUM
185 XTRACT_OCTAVE_SUBBANDS,
186 XTRACT_LINEAR_SUBBANDS
201 XTRACT_ANY_AMPLITUDE_HERTZ,
222 XTRACT_BARTLETT_HANN,
225 XTRACT_BLACKMAN_HARRIS
233 XTRACT_SPECTRAL_MAGNITUDES,
236 XTRACT_SPECTRAL_PEAKS,
238 XTRACT_SPECTRAL_PEAKS_MAGNITUDES,
240 XTRACT_SPECTRAL_PEAKS_FREQUENCIES,
243 XTRACT_SPECTRAL_HARMONICS,
245 XTRACT_SPECTRAL_HARMONICS_MAGNITUDES,
247 XTRACT_SPECTRAL_HARMONICS_FREQUENCIES,
248 XTRACT_AUTOCORRELATION_COEFFS,
249 XTRACT_ARBITRARY_SERIES,
250 XTRACT_AUDIO_SAMPLES,
265 char name[XTRACT_MAX_NAME_LENGTH];
266 char p_name[XTRACT_MAX_NAME_LENGTH];
267 char desc[XTRACT_MAX_DESC_LENGTH];
268 char p_desc[XTRACT_MAX_DESC_LENGTH];
269 char author[XTRACT_MAX_AUTHOR_LENGTH];
282 float min[XTRACT_MAXARGS];
283 float max[XTRACT_MAXARGS];
284 float def[XTRACT_MAXARGS];
286 int donor[XTRACT_MAXARGS];
357 extern int(*xtract[XTRACT_FEATURES])(
const float *data,
const int N,
const void *argv,
float *result);
371 int xtract_init_mfcc(
int N,
float nyquist,
int style,
float freq_min,
float freq_max,
int freq_bands,
float **fft_tables);
xtract_vector_
Enumeration of vector format types.
Definition: libxtract.h:229
xtract_features_
Enumeration of features, elements are used as indixes to an array of pointers to feature extracton fu...
Definition: libxtract.h:74
xtract_feature_init_
Enumeration of feature initialisation functions.
Definition: libxtract.h:139
enum type_ xtract_type_t
Enumeration of data types.
struct xtract_mel_filter_ xtract_mel_filter
An array of pointers to functions that perform the extraction.
xtract_window_types_
Window types.
Definition: libxtract.h:216
struct _xtract_function_descriptor xtract_function_descriptor_t
Data structure containing useful information about functions provided by LibXtract.
xtract_spectrum_
Enumeration of spectrum types.
Definition: libxtract.h:176
enum unit_ xtract_unit_t
Enumeration of units.
int xtract_init_fft(int N, int feature_name)
An initialisation function for functions using FFT.
xtract_return_codes_
Enumeration of return codes.
Definition: libxtract.h:165
xtract_bool_t
Boolean.
Definition: libxtract.h:210
int xtract_init_bark(int N, float sr, int *band_limits)
A function to initialise bark filter bounds.
An array of pointers to functions that perform the extraction.
Definition: libxtract.h:362
unit_
Enumeration of units.
Definition: libxtract.h:198
xtract_feature_types_
Enumeration of feature types.
Definition: libxtract.h:146
enum xtract_vector_ xtract_vector_t
Enumeration of vector format types.
float * xtract_init_window(const int N, const int type)
Make a window of a given type and return a pointer to it.
void xtract_free_window(float *window)
Free a window as allocated by xtract_make_window()
type_
Enumeration of data types.
Definition: libxtract.h:190
Data structure containing useful information about functions provided by LibXtract.
Definition: libxtract.h:260
void xtract_free_fft(void)
Free memory used for fft plans.
xtract_subband_scales_
Subband scales.
Definition: libxtract.h:184
xtract_mfcc_types_
Enumeration of mfcc types.
Definition: libxtract.h:153
int xtract_init_mfcc(int N, float nyquist, int style, float freq_min, float freq_max, int freq_bands, float **fft_tables)
A function to initialise a mel filter bank.