comparison dsp/tempotracking/DownBeat.cpp @ 122:2b5b37255db2

Merge from pvoc branch
author Chris Cannam
date Fri, 04 Oct 2013 16:43:44 +0100
parents f6ccde089491
children a2b3fd07d862
comparison
equal deleted inserted replaced
111:469d234acb9e 122:2b5b37255db2
191 m_beatframe[j] = 0.0; 191 m_beatframe[j] = 0.0;
192 } 192 }
193 193
194 // Now FFT beat frame 194 // Now FFT beat frame
195 195
196 m_fft->process(false, m_beatframe, m_fftRealOut, m_fftImagOut); 196 m_fft->forward(m_beatframe, m_fftRealOut, m_fftImagOut);
197 197
198 // Calculate magnitudes 198 // Calculate magnitudes
199 199
200 for (size_t j = 0; j < m_beatframesize/2; ++j) { 200 for (size_t j = 0; j < m_beatframesize/2; ++j) {
201 newspec[j] = sqrt(m_fftRealOut[j] * m_fftRealOut[j] + 201 newspec[j] = sqrt(m_fftRealOut[j] * m_fftRealOut[j] +