Mercurial > hg > qm-dsp
comparison dsp/mfcc/MFCC.cpp @ 114:f6ccde089491 pvoc
Tidy real-to-complex FFT -- forward and inverse have different arguments, so make them separate functions; document
author | Chris Cannam |
---|---|
date | Wed, 02 Oct 2013 15:04:38 +0100 |
parents | e5907ae6de17 |
children |
comparison
equal
deleted
inserted
replaced
113:3cb359d043f0 | 114:f6ccde089491 |
---|---|
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 } |