Firmware for HexBoard MIDI controller
Arpeggio synth: Don't stutter on held note
Zach DeCook 2024-06-15
parent b23b152 · commit b13d2f4
-rw-r--r--HexBoard.ino5
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);
+ }
}
}
}