Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 1464:66bf1abfefc1
Fix incorrect frequency display in peak-freq mode
author | Chris Cannam |
---|---|
date | Fri, 24 May 2019 14:29:19 +0100 |
parents | 6cf3cb6641e1 |
children | f2525e6cbdf1 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Mon May 20 15:04:32 2019 +0100 +++ b/layer/SpectrogramLayer.cpp Fri May 24 14:29:19 2019 +0100 @@ -1274,7 +1274,7 @@ for (int s = s0i; s <= s1i; ++s) { - double binfreq = (double(sr) * q) / m_windowSize; + double binfreq = (double(sr) * q) / getFFTSize(); if (q == q0i) freqMin = binfreq; if (q == q1i) freqMax = binfreq;