From 8df171389fc889f17bd8c29574795c6131cdc60c Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 7 Jul 2023 12:46:33 -0400 Subject: Scale lock: Fix for released notes in buzzer mode --- HexBoard_V1.1.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HexBoard_V1.1.ino b/HexBoard_V1.1.ino index 24533a1..7ed5ca2 100644 --- a/HexBoard_V1.1.ino +++ b/HexBoard_V1.1.ino @@ -900,7 +900,8 @@ void sequencerPlayNextNote() { byte getHeldNote() { for (int i = 0; i < elementCount; i++) { if (activeButtons[i]) { - if (currentLayout[i] < 128) { + byte note = (currentLayout[i] - key + transpose) % 12; + if (currentLayout[i] < 128 && isNotePlayable(note)) { return (currentLayout[i] + transpose) % 128; } } -- cgit 1.4.1