From 6e2c62bbfd546be4e37591c873b72d4412e5812c Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Tue, 31 Dec 2019 09:39:05 +0100 Subject: [PATCH] Enabled checking of note boundaries for noteOn events. --- MicroDexed.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index 5d63c6b..2803c71 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -650,7 +650,8 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) { if (checkMidiChannel(inChannel, instance_id)) { - MicroDexed[instance_id]->keydown(inNumber, inVelocity); + if (inNumber >= configuration.dexed[instance_id].note_start && inNumber <= configuration.dexed[instance_id].note_end) + MicroDexed[instance_id]->keydown(inNumber, inVelocity); } } }