comparison dsp/segmentation/ClusterMeltSegmenter.cpp @ 122:2b5b37255db2

Merge from pvoc branch
author Chris Cannam
date Fri, 04 Oct 2013 16:43:44 +0100
parents f6ccde089491
children e4a57215ddee
comparison
equal deleted inserted replaced
111:469d234acb9e 122:2b5b37255db2
207 frame[i + fftsize/2] = value; 207 frame[i + fftsize/2] = value;
208 } 208 }
209 209
210 window->cut(frame); 210 window->cut(frame);
211 211
212 fft->process(false, frame, real, imag); 212 fft->forward(frame, real, imag);
213 213
214 constq->process(real, imag, cqre, cqim); 214 constq->process(real, imag, cqre, cqim);
215 215
216 for (int i = 0; i < ncoeff; ++i) { 216 for (int i = 0; i < ncoeff; ++i) {
217 cq[i] += sqrt(cqre[i] * cqre[i] + cqim[i] * cqim[i]); 217 cq[i] += sqrt(cqre[i] * cqre[i] + cqim[i] * cqim[i]);