Short-circuit slightly (in output, not so much in efficiency) when ratio is 1

This commit is contained in:
Chris Cannam
2022-05-27 11:45:28 +01:00
parent 9379908982
commit 4d4bc7b4c3
2 changed files with 37 additions and 9 deletions

View File

@@ -183,7 +183,9 @@ public:
++phaseLockBand;
}
double ph = 0.0;
if (inRange(f, g->phaseReset) || inRange(f, g->kick)) {
if (inhop == outhop) {
ph = m_unlocked[c][i];
} else if (inRange(f, g->phaseReset) || inRange(f, g->kick)) {
ph = phase[c][i];
} else if (inRange (f, g->highPercussive)) {
ph = m_unlocked[c][i];