Mercurial > hg > vamp-tempogram
comparison SpectrogramProcessor.cpp @ 21:12b952286959
* Debugging 1Hz freeze using vamp-plugin-tester
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Mon, 18 Aug 2014 15:22:44 +0100 |
parents | de7213b35755 |
children | 957b83524c06 |
comparison
equal
deleted
inserted
replaced
20:de7213b35755 | 21:12b952286959 |
---|---|
79 } | 79 } |
80 for (int n = m_windowLength; n < (int)m_fftLength; n++){ | 80 for (int n = m_windowLength; n < (int)m_fftLength; n++){ |
81 m_pFftInput[n] = 0.0; | 81 m_pFftInput[n] = 0.0; |
82 } | 82 } |
83 | 83 |
84 //cerr << m_fftLength << endl; | |
84 FFT::forward(m_fftLength, m_pFftInput, 0, m_pFftOutputReal, m_pFftOutputImag); | 85 FFT::forward(m_fftLength, m_pFftInput, 0, m_pFftOutputReal, m_pFftOutputImag); |
85 | 86 |
86 vector<float> binValues; | 87 vector<float> binValues; |
87 //@todo: sample at logarithmic spacing? Leave for host? | 88 //@todo: sample at logarithmic spacing? Leave for host? |
88 for(int k = 0; k < (int)m_numberOfOutputBins; k++){ | 89 for(int k = 0; k < (int)m_numberOfOutputBins; k++){ |