Using the instantaneous ratio here seems more proper, but it causes audible interference when using tiny shift ratios such that the hop flips back and forth between two adjacent values. Let's try using the more stable effective ratio, and see if the window smoothing is sufficient

This commit is contained in:
Chris Cannam
2022-06-14 10:01:11 +01:00
parent 9dbf53026a
commit fb75aa36f6

View File

@@ -814,10 +814,9 @@ R3StretcherImpl::analyseChannel(int c, int inhop, int prevInhop, int prevOuthop)
std::cout << std::endl;
}
*/
double instantaneousRatio = double(prevOuthop) / double(prevInhop);
bool specialCaseUnity = true;
m_guide.updateGuidance(instantaneousRatio,
m_guide.updateGuidance(getEffectiveRatio(),
classifyScale->mag.data(),
classifyScale->prevMag.data(),
cd->readahead.mag.data(),