We need the full range for this FFT now, since we are switching to it of necessity when outhop > 256

This commit is contained in:
Chris Cannam
2022-06-15 09:39:36 +01:00
parent eb7e171643
commit 136c546955

View File

@@ -124,9 +124,11 @@ public:
m_configuration.fftBandLimits[0] = m_configuration.fftBandLimits[0] =
BandLimits(bandFftSize, rate, 0.0, m_maxLower); BandLimits(bandFftSize, rate, 0.0, m_maxLower);
// This is the classification and fallback FFT: we need the
// full range for it
bandFftSize = roundUp(int(ceil(rate/32.0))); bandFftSize = roundUp(int(ceil(rate/32.0)));
m_configuration.fftBandLimits[1] = m_configuration.fftBandLimits[1] =
BandLimits(bandFftSize, rate, 0.0, m_maxHigher); BandLimits(bandFftSize, rate, 0.0, rate / 2.0);
bandFftSize = roundUp(int(ceil(rate/64.0))); bandFftSize = roundUp(int(ceil(rate/64.0)));
m_configuration.fftBandLimits[2] = m_configuration.fftBandLimits[2] =