Retrigger a note only if the cc value changed

This won't remove the need for polyphony opcodes when using
high-res CC, but at least it should help with automation lanes.
Note: this is not what Sforzando does.
This commit is contained in:
Paul Fd 2021-12-19 22:33:57 +01:00
parent 52949ea2bc
commit 5743c10631

View file

@ -179,7 +179,8 @@ bool Layer::registerCC(int ccNumber, float ccValue, float randValue) noexcept
sequenceSwitched_ = sequenceSwitched_ =
((sequenceCounter_++ % region.sequenceLength) == region.sequencePosition - 1); ((sequenceCounter_++ % region.sequenceLength) == region.sequencePosition - 1);
if (isSwitchedOn())
if (isSwitchedOn() && (ccValue != midiState_.getCCValue(ccNumber)))
return true; return true;
} }