Dateien hochladen nach „“

pull/74/head
positionhigh 3 years ago
parent 396150a5b2
commit db599940d7
  1. 5
      MicroDexed.ino

@ -768,6 +768,9 @@ void loop()
******************************************************************************/ ******************************************************************************/
void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
{ {
//Ignore the note when playing & recording the same note into the sequencer
if (seq_recording == false || (seq_recording && inNumber != seq_note_in ))
{
// Check for MicroDexed // Check for MicroDexed
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++) for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++)
{ {
@ -817,7 +820,6 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
Serial.print(F("]: ")); Serial.print(F("]: "));
Serial.println(note_name); Serial.println(note_name);
#endif #endif
for (uint8_t d = 0; d < NUM_DRUMSET_CONFIG; d++) for (uint8_t d = 0; d < NUM_DRUMSET_CONFIG; d++)
{ {
if (inNumber == drum_config[d].midinote) if (inNumber == drum_config[d].midinote)
@ -854,6 +856,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
} }
} }
#endif #endif
}
} }
#if NUM_DRUMS > 0 #if NUM_DRUMS > 0

Loading…
Cancel
Save