comparison FIRFilter.cpp @ 14:c11367df624d

* Renamed NoveltyCurve.* and Spectrogram.* to $(Name)Processor.* * Aligned novelty curve with audio - when performing FIRFilter::process(params), take inputLength after group delay. * Removed trail of Spectrogram. * General tidying!
author Carl Bussey <c.bussey@se10.qmul.ac.uk>
date Thu, 14 Aug 2014 10:31:49 +0100
parents 7680cc4c0073
children 203551cbad47
comparison
equal deleted inserted replaced
13:7680cc4c0073 14:c11367df624d
75 } 75 }
76 76
77 FFT::inverse(m_lengthFIRFFT, m_pFftFilteredReal, m_pFftFilteredImag, m_pFftOutputReal, m_pFftOutputImag); 77 FFT::inverse(m_lengthFIRFFT, m_pFftFilteredReal, m_pFftFilteredImag, m_pFftOutputReal, m_pFftOutputImag);
78 78
79 //copy to output 79 //copy to output
80 int offset = ceil(m_numberOfCoefficients/2);
81 //int offset = 0;
80 for (unsigned int i = 0; i < m_lengthInput; i++){ 82 for (unsigned int i = 0; i < m_lengthInput; i++){
81 pOutput[i] = m_pFftOutputReal[i]; 83 pOutput[i] = m_pFftOutputReal[i + offset];
82 } 84 }
83 } 85 }
84 86
85 //remove memory allocations 87 //remove memory allocations
86 void 88 void