Connect up the ChannelsTogether option in R3 as well, to extend the channel lock range upward

This commit is contained in:
Chris Cannam
2022-07-04 10:52:50 +01:00
parent 67cb55c375
commit 687e3958a7
3 changed files with 33 additions and 18 deletions

View File

@@ -156,6 +156,7 @@ public:
double meanMagnitude,
int unityCount,
bool realtime,
bool tighterChannelLock,
Guidance &guidance) const {
bool hadPhaseReset = guidance.phaseReset.present;
@@ -191,7 +192,12 @@ public:
guidance.channelLock.present = true;
guidance.channelLock.f0 = 0.0;
guidance.channelLock.f1 = 600.0;
if (tighterChannelLock) {
guidance.channelLock.f1 = nyquist;
} else {
guidance.channelLock.f1 = 600.0;
}
bool kick =
(segmentation.percussiveBelow > 40.0) &&