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:
parent
52949ea2bc
commit
5743c10631
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue