Mercurial > hg > constant-q-cpp
changeset 177:7d4f4c51a4ad
Minor tidy
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 28 Apr 2015 16:54:12 +0100 |
parents | 5b1a1bbd6e7f |
children | 2420733abeb6 |
files | src/ConstantQ.cpp |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ConstantQ.cpp Tue Apr 28 13:53:53 2015 +0100 +++ b/src/ConstantQ.cpp Tue Apr 28 16:54:12 2015 +0100 @@ -344,15 +344,12 @@ m_fft->forward(m_buffers[octave].data(), ro.data(), io.data()); - RealSequence shifted; - shifted.insert(shifted.end(), - m_buffers[octave].begin() + m_p.fftHop, - m_buffers[octave].end()); - m_buffers[octave] = shifted; + m_buffers[octave] = RealSequence(m_buffers[octave].begin() + m_p.fftHop, + m_buffers[octave].end()); - ComplexSequence cv; + ComplexSequence cv(m_p.fftSize); for (int i = 0; i < m_p.fftSize; ++i) { - cv.push_back(Complex(ro[i], io[i])); + cv[i] = Complex(ro[i], io[i]); } ComplexSequence cqrowvec = m_kernel->processForward(cv);