|
|
|
@ -74,6 +74,7 @@ void handleStop(void); |
|
|
|
|
void handleActiveSensing(void); |
|
|
|
|
void handleSystemReset(void); |
|
|
|
|
//void handleRealTimeSystem(void);
|
|
|
|
|
void MD_sendControlChange(byte channel, byte cc, byte value); |
|
|
|
|
|
|
|
|
|
/*****************************************
|
|
|
|
|
MIDI_DEVICE_DIN |
|
|
|
@ -1570,6 +1571,39 @@ void handleSystemReset_MIDI_DEVICE_USB(void) |
|
|
|
|
} */ |
|
|
|
|
#endif // MIDI_DEVICE_USB
|
|
|
|
|
|
|
|
|
|
void MD_sendControlChange(byte channel, byte cc, byte value) |
|
|
|
|
{ |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F("[MD] SendControlChange CH:")); |
|
|
|
|
Serial.print(channel, DEC); |
|
|
|
|
Serial.print(F(" CC:")); |
|
|
|
|
Serial.print(cc); |
|
|
|
|
Serial.print(F(" VAL:")); |
|
|
|
|
Serial.print(value); |
|
|
|
|
#endif |
|
|
|
|
#ifdef MIDI_DEVICE_DIN |
|
|
|
|
midi_serial.sendControlChange(cc, value, channel); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F(" MIDI-DIN")); |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#ifdef MIDI_DEVICE_USB_HOST |
|
|
|
|
midi_usb.sendControlChange(cc, value, channel); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F(" MIDI-USB-HOST")); |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#ifdef MIDI_DEVICE_USB |
|
|
|
|
usbMIDI.sendControlChange(cc, value, channel); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F(" MIDI-USB")); |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.println(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*****************************************
|
|
|
|
|
HELPER FUCNTIONS |
|
|
|
|
*****************************************/ |
|
|
|
|