Mercurial > hg > svgui
changeset 1464:66bf1abfefc1
Fix incorrect frequency display in peak-freq mode
author | Chris Cannam |
---|---|
date | Fri, 24 May 2019 14:29:19 +0100 |
parents | 6bd413aff85c |
children | 0ecfaa463c1b |
files | layer/SpectrogramLayer.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;