View Full Version : Experimenting with USB-MIDI on Teensy 3.0

11-15-2012, 09:02 AM
USB MIDI is working fine with my Teensy 2, so (noticing that it is currently disabled with the Teensy 3.0 beta 7) I thought I would have a go at enabling it, to see what breaks and what needs to be changed.

I made the following changes. In hardware/teensy/boards.txt, these three lines were commented out and I uncommented them:


In hardware/teensy/cores/usb_midi/usb_private.h I wasn't sure what to add by way of a processor define, so instead, for testing, I brutally commented out the following check :o :

// #if defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)


// #endif

I had sort of expected that to be it; the actual code loked pretty same, with abundant use of explicitly sized types. On starting up the IDE, MIDI is there in the menu. However, on verifying a sketch which works on Teensy 2, I get

MIDI_multicontroller_USB_T3.ino: In function 'void loop()':
MIDI_multicontroller_USB_T3:34: error: 'usbMIDI' was not declared in this scope

so presumably I need to do something else to enable it. I would appreciate guidance on what that might be.

It would also be interesting to hear of any known problems with the USB MIDI on Teensy 3.0. I assume it is disabled because of known problems, though it could of course be disabled just due to not having been well tested (in which case my experiments might help).

11-15-2012, 04:18 PM
USB MIDI is working fine with my Teensy 2, so (noticing that it is currently disabled with the Teensy 3.0 beta 7)

Paul has not yet ported USB midi to teensy 3. The teensy 3 USB system is rather different than teensy 2 and so there is some work to be done.

I have it working from the command line (see previous posts for link to code) but not in the Arduino IDE, which I dont use.

My guess is that it's pretty near the top of Paul's list after he gets serial emulation (really hid raw) working.


10-08-2013, 12:46 AM
Update to help anyone who comes across this old thread. The original post related to beta 6. USB Midi was officially added in beta 9 (http://forum.pjrc.com/threads/1939-Teensy-3-0-Beta9-Software) which came out on 6 December 2012. Teensy 3.0 came out of beta in January 2013 (http://forum.pjrc.com/threads/17592-Teensyduino-1-12-Released). Its working fine.