Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Experimenting with USB-MIDI on Teensy 3.0

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,108

    Experimenting with USB-MIDI on Teensy 3.0

    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:
    Code:
    teensy3.menu.usb.midi.name=MIDI
    teensy3.menu.usb.midi.build.define0=-DUSB_MIDI
    teensy3.menu.usb.midi.fake_serial=teensy_gateway
    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 :
    Code:
    // #if defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB1286__)
    and
    Code:
    // #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

    Code:
    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).

  2. #2
    Quote Originally Posted by Nantonos View Post
    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.

    -c

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,108
    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 which came out on 6 December 2012. Teensy 3.0 came out of beta in January 2013. Its working fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •