I'm working on a pair of devices that send (Mini Pro + NRF24L01) and receive (Teensy + NRF24L01) raw MIDI bytes from the source device. Currently, I don't even care about what kind of MIDI message it is, I just want to forward it to USB MIDI. There will be no Sysex messages coming in from the source device. I'm not quite sure about running status though - the source might be sending messages with running status.
Teensy's documentation says:
To use this function, I would need to parse the MIDI message.
I have looked at the Interface_3x3 example and it uses SerialMIDI library to read and parse the incoming data:
Is there any way to feed the raw bytes into serialMIDI? Should I use a serial port with TX+RX connected, send raw bytes to it, and read from it using serialMIDI? Seems somewhat overkill to me. Or should I use some other library that's capable of collecting raw bytes and parsing them?
Teensy's documentation says:
A generic send function is also available, primarily meant for use to forward messages between Serial (5 pin DIN) MIDI or USB Host MIDI.
usbMIDI.send(type, data1, data2, channel)
To use this function, I would need to parse the MIDI message.
I have looked at the Interface_3x3 example and it uses SerialMIDI library to read and parse the incoming data:
Code:
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI1);
if (MIDI1.read()) {
// get a MIDI IN1 (Serial) message
byte type = MIDI1.getType();
byte channel = MIDI1.getChannel();
byte data1 = MIDI1.getData1();
byte data2 = MIDI1.getData2();
usbMIDI.send(type, data1, data2, channel, 0);
Is there any way to feed the raw bytes into serialMIDI? Should I use a serial port with TX+RX connected, send raw bytes to it, and read from it using serialMIDI? Seems somewhat overkill to me. Or should I use some other library that's capable of collecting raw bytes and parsing them?