From b13d2f49c06c7213f3a88ccf41fd28d909221c16 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 15 Jun 2024 11:41:46 -0400 Subject: Arpeggio synth: Don't stutter on held note --- HexBoard.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } } } } -- cgit 1.4.1