Small fixes for latest addition.

dev
Holger Wirtz 2 years ago
parent 4292e5de99
commit a6b4e56048
  1. 12
      MicroDexed.ino

@ -908,12 +908,16 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity) {
// check for MIDI learn mode
if (midi_learn_var != NULL) {
*midi_learn_var = inNumber;
if (LCDML.FUNC_getID() != LCDML.OTHER_getIDFromFunction(UI_func_drum_midi_note))
if (LCDML.FUNC_getID() == LCDML.OTHER_getIDFromFunction(UI_func_drum_midi_note))
LCDML.OTHER_jumpToFunc(UI_func_drum_midi_note);
else if (LCDML.FUNC_getID() != LCDML.OTHER_getIDFromFunction(UI_func_lowest_note))
else if (LCDML.FUNC_getID() == LCDML.OTHER_getIDFromFunction(UI_func_lowest_note)) {
if (inNumber > configuration.dexed[selected_instance_id].highest_note)
configuration.dexed[selected_instance_id].highest_note = inNumber;
LCDML.OTHER_jumpToFunc(UI_func_lowest_note);
else if (LCDML.FUNC_getID() != LCDML.OTHER_getIDFromFunction(UI_func_highest_note))
LCDML.OTHER_jumpToFunc(UI_func_highest_note);
} else if (LCDML.FUNC_getID() == LCDML.OTHER_getIDFromFunction(UI_func_highest_note))
if (inNumber < configuration.dexed[selected_instance_id].lowest_note)
configuration.dexed[selected_instance_id].lowest_note = inNumber;
LCDML.OTHER_jumpToFunc(UI_func_highest_note);
}
// Check for MicroDexed

Loading…
Cancel
Save