I recently purchased a Teensy 2.0 as I am migrating a project that started with an Arduino but I wanted to keep my hardware at +5 Vdc while making use of the extra output pins and the USB MIDI features. I am hitting wall with trying to read System Exclusive messages from a DAW on a macintosh and need some guidance.
Firstly, the serial MIDI library supports a callback function to read System Exclusive messages but I don't see that functionality duplicated with USB MIDI. Is this correct? If so, is it forthcoming?
Secondly, as a test I wrote a very small program to test and see if an incoming message is System Exclusive and I seem to be getting a lot of data with nothing else on my computer sending MIDI. I'm making use of the macintosh utility MIDI Monitor to keep an eye on things and it looks like the Teensy is currently seeing a ton of phantom SysEx data.
Here's my simple program:
The output to serial is attached as a screencap. Any advice would be greatly appreciated!
Firstly, the serial MIDI library supports a callback function to read System Exclusive messages but I don't see that functionality duplicated with USB MIDI. Is this correct? If so, is it forthcoming?
Secondly, as a test I wrote a very small program to test and see if an incoming message is System Exclusive and I seem to be getting a lot of data with nothing else on my computer sending MIDI. I'm making use of the macintosh utility MIDI Monitor to keep an eye on things and it looks like the Teensy is currently seeing a ton of phantom SysEx data.
Here's my simple program:
Code:
void setup() {
// put your setup code here, to run once:
Serial.begin(38400);
}
void loop() {
// put your main code here, to run repeatedly:
usbMIDI.read();
Serial.print("Message is of type ");Serial.println(usbMIDI.getType());
}
The output to serial is attached as a screencap. Any advice would be greatly appreciated!