Impose a limit here

This commit is contained in:
Chris Cannam
2022-07-14 13:52:04 +01:00
parent e018458736
commit d0cca91e30

View File

@@ -324,6 +324,7 @@ R3Stretcher::calculateHop()
// 1024-bin one, so it can survive longer hops, which is good
// because reduced CPU consumption is the whole motivation
proposedOuthop *= 2.0;
if (proposedOuthop > 640.0) proposedOuthop = 640.0;
}
m_log.log(1, "calculateHop: ratio and proposed outhop", ratio, proposedOuthop);