comparison layer/SpectrogramLayer.cpp @ 1466:0ecfaa463c1b

Merge
author Chris Cannam
date Fri, 24 May 2019 15:14:09 +0100
parents 66bf1abfefc1
children f2525e6cbdf1
comparison
equal deleted inserted replaced
1465:f31ccc5f3fb8 1466:0ecfaa463c1b
1272 1272
1273 for (int q = q0i; q <= q1i; ++q) { 1273 for (int q = q0i; q <= q1i; ++q) {
1274 1274
1275 for (int s = s0i; s <= s1i; ++s) { 1275 for (int s = s0i; s <= s1i; ++s) {
1276 1276
1277 double binfreq = (double(sr) * q) / m_windowSize; 1277 double binfreq = (double(sr) * q) / getFFTSize();
1278 if (q == q0i) freqMin = binfreq; 1278 if (q == q0i) freqMin = binfreq;
1279 if (q == q1i) freqMax = binfreq; 1279 if (q == q1i) freqMax = binfreq;
1280 1280
1281 if (peaksOnly && !fft->isLocalPeak(s, q)) continue; 1281 if (peaksOnly && !fft->isLocalPeak(s, q)) continue;
1282 1282