comparison dsp/mfcc/MFCC.cpp @ 339:9c8ee77db9de

Tidy real-to-complex FFT -- forward and inverse have different arguments, so make them separate functions; document
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 02 Oct 2013 15:04:38 +0100
parents d5014ab8b0e5
children cbe668c7d724
comparison
equal deleted inserted replaced
338:35db1b24a848 339:9c8ee77db9de
208 for (int i = 0; i < fftSize; ++i) inputData[i] = inframe[i]; 208 for (int i = 0; i < fftSize; ++i) inputData[i] = inframe[i];
209 209
210 window->cut(inputData); 210 window->cut(inputData);
211 211
212 /* Calculate the fft on the input frame */ 212 /* Calculate the fft on the input frame */
213 fft->process(0, inputData, realOut, imagOut); 213 fft->forward(inputData, realOut, imagOut);
214 214
215 free(inputData); 215 free(inputData);
216 216
217 return process(realOut, imagOut, outceps); 217 return process(realOut, imagOut, outceps);
218 } 218 }