diff options
| author | Zach DeCook <zachdecook@librem.one> | 2024-06-15 11:41:46 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2024-06-15 11:41:46 -0400 |
| commit | b13d2f49c06c7213f3a88ccf41fd28d909221c16 (patch) | |
| tree | 71f1c1f962737df130cde0401dccc35788a6e522 | |
| parent | b23b1524016908939ebbfd0724df3c97e8c6e31e (diff) | |
| download | HexBoard-b13d2f49c06c7213f3a88ccf41fd28d909221c16.tar.gz | |
Arpeggio synth: Don't stutter on held note
| -rw-r--r-- | HexBoard.ino | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/HexBoard.ino b/HexBoard.ino index 3890004..ee7a6b9 100644 --- a/HexBoard.ino +++ b/HexBoard.ino @@ -1909,7 +1909,10 @@ if (playbackMode == SYNTH_ARPEGGIO) { if (runTime - arpeggiateTime > arpeggiateLength) { arpeggiateTime = runTime; - replaceMonoSynthWith(findNextHeldNote()); + byte x = findNextHeldNote(); + if (x != arpeggiatingNow) { + replaceMonoSynthWith(x); + } } } } |
