Firmware for HexBoard MIDI controller
-rw-r--r--HexBoard_V1.1.ino3
1 files changed, 2 insertions, 1 deletions
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;
}
}