Mercurial > hg > qm-dsp
comparison dsp/segmentation/ClusterMeltSegmenter.cpp @ 347:e3dedded9c4d
Merge from pvoc branch
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 04 Oct 2013 16:43:44 +0100 |
parents | 9c8ee77db9de |
children | e4a57215ddee |
comparison
equal
deleted
inserted
replaced
336:f665f9ce2fd1 | 347:e3dedded9c4d |
---|---|
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]); |