|
|
@ -385,6 +385,14 @@ void setup() { |
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|
setup_debug_message(); |
|
|
|
setup_debug_message(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#if defined(MIDI_DEVICE_USB_HOST_SERIAL) |
|
|
|
|
|
|
|
display.clear(); |
|
|
|
|
|
|
|
display.setCursor(0, 0); |
|
|
|
|
|
|
|
display.print(F("WAIT FOR USBHOST")); |
|
|
|
|
|
|
|
display.setCursor(0, 1); |
|
|
|
|
|
|
|
display.print(F("DEVICE")); |
|
|
|
|
|
|
|
Serial.println(F("Waiting for MIDI devices on USB-Host...")); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
pinMode(LED_BUILTIN, OUTPUT); |
|
|
|
pinMode(LED_BUILTIN, OUTPUT); |
|
|
|
|
|
|
|
|
|
|
@ -1251,7 +1259,7 @@ void handleAfterTouch(byte inChannel, byte inPressure) { |
|
|
|
void handlePitchBend(byte inChannel, int inPitch) { |
|
|
|
void handlePitchBend(byte inChannel, int inPitch) { |
|
|
|
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++) { |
|
|
|
for (uint8_t instance_id = 0; instance_id < NUM_DEXED; instance_id++) { |
|
|
|
if (checkMidiChannel(inChannel, instance_id)) { |
|
|
|
if (checkMidiChannel(inChannel, instance_id)) { |
|
|
|
MicroDexed[instance_id]->setPitchbend(inPitch - 0x2000); |
|
|
|
MicroDexed[instance_id]->setPitchbend(uint16_t(inPitch)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|