aubio  0.4.0
 All Data Structures Files Functions Variables Typedefs Macros
spectral/test-mfcc.c
#include <aubio.h>
int main ()
{
uint_t win_s = 512; // fft size
uint_t n_filters = 40; // number of filters
uint_t n_coefs = 13; // number of coefficients
smpl_t samplerate = 16000.; // samplerate
cvec_t *in = new_cvec (win_s); // input buffer
fvec_t *out = new_fvec (n_coefs); // output coefficients
// create mfcc object
aubio_mfcc_t *o = new_aubio_mfcc (win_s, n_filters, n_coefs, samplerate);
aubio_mfcc_do (o, in, out);
fvec_print (out);
aubio_mfcc_do (o, in, out);
fvec_print (out);
// clean up
del_cvec (in);
del_fvec (out);
return 0;
}