# HG changeset patch # User Chris Cannam # Date 1558704559 -3600 # Node ID 66bf1abfefc11c6d6096131f901412a76dd6a51e # Parent 6bd413aff85ca032351e60c9cab578cd27d68571 Fix incorrect frequency display in peak-freq mode diff -r 6bd413aff85c -r 66bf1abfefc1 layer/SpectrogramLayer.cpp --- 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;