Mercurial > hg > qm-dsp
diff dsp/chromagram/ConstantQ.cpp @ 64:6cb2b3cd5356
* Refactor FFT a little bit so as to separate construction and processing
rather than have a single static method -- will make it easier to use a
different implementation
* pull in KissFFT implementation (not hooked up yet)
author | cannam |
---|---|
date | Wed, 13 May 2009 09:19:12 +0000 |
parents | 114e833c07ac |
children | dcb555b90924 |
line wrap: on
line diff
--- a/dsp/chromagram/ConstantQ.cpp Tue May 12 21:04:25 2009 +0000 +++ b/dsp/chromagram/ConstantQ.cpp Wed May 13 09:19:12 2009 +0000 @@ -103,7 +103,7 @@ //add it to the sparse kernels matrix double squareThreshold = m_CQThresh * m_CQThresh; - FFT m_FFT; + FFT m_FFT(m_FFTLength); for (unsigned k = m_uK; k--; ) { @@ -138,7 +138,7 @@ } //do fft of hammingWindow - m_FFT.process( m_FFTLength, 0, hammingWindowRe, hammingWindowIm, transfHammingWindowRe, transfHammingWindowIm ); + m_FFT.process( 0, hammingWindowRe, hammingWindowIm, transfHammingWindowRe, transfHammingWindowIm ); for (unsigned j=0; j<( m_FFTLength ); j++)