# HG changeset patch # User Chris Cannam # Date 1558707249 -3600 # Node ID 0ecfaa463c1b11cbbe2070de5dbaf73bcd9c0bc5 # Parent f31ccc5f3fb8b8696681425e273bd5ef168a76f2# Parent 66bf1abfefc11c6d6096131f901412a76dd6a51e Merge diff -r f31ccc5f3fb8 -r 0ecfaa463c1b layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Fri May 24 15:13:57 2019 +0100 +++ b/layer/SpectrogramLayer.cpp Fri May 24 15:14:09 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;