Fix for playing instruments on the same MIDI channel.

dev
Holger Wirtz 3 years ago
parent c1a276a74f
commit de6377ec15
  1. 6
      MicroDexed.ino

@ -1069,6 +1069,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
} }
} }
else else
{
#endif #endif
//Ignore the note when playing & recording the same note into the sequencer //Ignore the note when playing & recording the same note into the sequencer
if (seq.recording == false || (seq.recording && inNumber != seq.note_in )) 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.print(inChannel, DEC);
Serial.println(); Serial.println();
#endif #endif
return; //return;
} }
} }
} }
@ -1177,6 +1178,9 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
} }
} }
} }
#endif
#if NUM_DRUMS > 0
}
#endif #endif
} }

Loading…
Cancel
Save