minor changes
authorAmaury Hazan <mahmoudax@gmail.org>
Thu, 6 Sep 2007 13:49:29 +0000 (15:49 +0200)
committerAmaury Hazan <mahmoudax@gmail.org>
Thu, 6 Sep 2007 13:49:29 +0000 (15:49 +0200)
examples/aubiomfcc.c
src/mfcc.h

index cca6605..1f16ca7 100644 (file)
@@ -25,6 +25,11 @@ int aubio_process(float **input, float **output, int nframes);
 int aubio_process(float **input, float **output, int nframes) {
   unsigned int i;       /*channels*/
   unsigned int j;       /*frames*/
+  
+  // declare the mel filter bank
+  // TODO: should be done only once
+  aubio_mfcc_init(int N, NYQUIST, int style, float freq_min, float freq_max, int freq_bands, float **fft_tables);
+
   for (j=0;j<(unsigned)nframes;j++) {
     if(usejack) {
       for (i=0;i<channels;i++) {
index 03a9c5d..8645ddf 100644 (file)
@@ -23,7 +23,6 @@
 #ifndef MFCC_H 
 #define MFCC_H 
 
-#define NYQUIST 22050.f
 
 //libXtract enums
 // TODO: remove them