|
|
@ -767,6 +767,9 @@ void loop() |
|
|
|
MIDI MESSAGE HANDLER |
|
|
|
MIDI MESSAGE HANDLER |
|
|
|
******************************************************************************/ |
|
|
|
******************************************************************************/ |
|
|
|
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) |
|
|
@ -855,6 +857,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
#if NUM_DRUMS > 0 |
|
|
|
uint8_t drum_get_slot(uint8_t dt) |
|
|
|
uint8_t drum_get_slot(uint8_t dt) |
|
|
|