Or is this the right thing? I'm having trouble deciding

This commit is contained in:
Chris Cannam
2022-06-06 17:50:22 +01:00
parent 48174ded20
commit ef2d39b3af

View File

@@ -767,7 +767,7 @@ R3StretcherImpl::synthesiseChannel(int c, int outhop)
int lowBin = int(floor(fftSize * band.f0 / m_parameters.sampleRate));
int highBin = int(floor(fftSize * band.f1 / m_parameters.sampleRate));
if (highBin % 2 == 1) --highBin;
if (highBin % 2 == 0 && highBin > 0) --highBin;
for (int i = 0; i < lowBin; ++i) {
scale->mag[i] = 0.0;