From de6377ec157393e53a59610e6f2732e7599b2022 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Mon, 21 Feb 2022 13:38:53 +0100 Subject: [PATCH] Fix for playing instruments on the same MIDI channel. --- MicroDexed.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index 51bcb74..cc668a7 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -1069,6 +1069,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) } } else + { #endif //Ignore the note when playing & recording the same note into the sequencer if (seq.recording == false || (seq.recording && inNumber != seq.note_in )) @@ -1102,7 +1103,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) Serial.print(inChannel, DEC); Serial.println(); #endif - return; + //return; } } } @@ -1178,7 +1179,10 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) } } #endif +#if NUM_DRUMS > 0 } +#endif + } // // E-Piano