Proper adjustment of outhop for extreme ratios

This commit is contained in:
Chris Cannam
2022-06-14 15:01:44 +01:00
parent 638948269b
commit 141c314c72
2 changed files with 33 additions and 16 deletions

View File

@@ -138,6 +138,7 @@ public:
}
void updateGuidance(double ratio,
int outhop,
const double *const magnitudes,
const double *const prevMagnitudes,
const double *const nextMagnitudes,
@@ -253,6 +254,11 @@ public:
guidance.fftBands[2].f0 = higher;
guidance.fftBands[2].f1 = nyquist;
if (outhop > 256) {
guidance.fftBands[1].f1 = nyquist;
guidance.fftBands[2].f0 = nyquist;
}
double mid = std::max(lower, 1600.0);