ref: dcc649ca5af3d0754150cc1f656db11b4636f60c
parent: 88199cee9bb703d33e28636e043109db53681ccb
author: Amaury Hazan <[email protected]>
date: Thu Sep 6 11:49:29 EDT 2007
minor changes
--- a/examples/aubiomfcc.c
+++ b/examples/aubiomfcc.c
@@ -25,6 +25,11 @@
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++) {
--- a/src/mfcc.h
+++ b/src/mfcc.h
@@ -23,7 +23,6 @@
#ifndef MFCC_H
#define MFCC_H
-#define NYQUIST 22050.f
//libXtract enums
// TODO: remove them