MIDI-Input-Callback
This is an example on how to attach your own callbacks for receiving MIDI input data.
- Boards:
- AVR, AVR USB, Due, Nano 33, Teensy 3.x, ESP32
Connections
None.
Behavior
- When MIDI messages are sent to the USB interface, they are printed to the Serial port.
Mapping
None.
Written by PieterP, 2019-08-07
https://github.com/tttapa/Control-Surface
Serial <<
F(
"Channel message: ") <<
hex << cm.
header <<
' ' << cm.
data1 <<
' '
return true;
}
Serial <<
F(
"System Exclusive message: ") <<
hex;
for (
size_t i = 0; i < se.
length; ++i)
Serial << se.
data[i] <<
' ';
return true;
}
<<
F(
" on cable ") << rt.
CN <<
endl;
return true;
}
void setup() {
Serial.begin(115200);
sysExMessageCallback,
realTimeMessageCallback);
}
void loop() {
}