Mercurial > hg > qm-dsp
diff dsp/chromagram/Chromagram.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 | e4a57215ddee |
line wrap: on
line diff
--- a/dsp/chromagram/Chromagram.cpp Tue Oct 01 15:38:56 2013 +0100 +++ b/dsp/chromagram/Chromagram.cpp Wed Oct 02 15:04:38 2013 +0100 @@ -139,8 +139,7 @@ } m_window->cut(m_windowbuf); - // FFT of current frame - m_FFT->process(false, m_windowbuf, m_FFTRe, m_FFTIm); + m_FFT->forward(m_windowbuf, m_FFTRe, m_FFTIm); return process(m_FFTRe, m_FFTIm); } @@ -158,7 +157,6 @@ double cmax = 0.0; double cval = 0; - // Calculate ConstantQ frame m_ConstantQ->process( real, imag, m_CQRe, m_CQIm );