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

Thread: USB MIDI confusion

  1. #1

    USB MIDI confusion

    I am attempting to use this page to assist in making a MIDI project (https://www.pjrc.com/teensy/td_midi.html).

    I have several Arduino boards along with a couple of Teensy boards.

    Under the "Transmitting Messages" I see there are usbMIDI calls. I am wondering where this is coming from since I have not included any sort of library. Also, the code never compiles unless I select a Teensy board within the IDE.

    Is this a built in library that is only used for Teensy? I have been looking for more documentation on the library but I am coming up short. I have browsed to the "MIDIcontroller library" hyperlink on that same pjrc page but it seems like it is not the same as the usbMIDI calls under "Transmitting Messages".

    I would really like to understand and see more documentation if it is listed somewhere, curious where it is pulling the library from or if it is built into Teensyduino.

    Thanks.

  2. #2
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Posts
    567
    That is built in to the Teensy core and only included when a USB type with MIDI is selected in the Tools menu with a Teensy board, so they won't work with standard Arduino boards. A lot of Arduino boards don't have native USB, but those that do have USB make use of this library: https://github.com/arduino-libraries/MIDIUSB that library can be used in conjunction with the standard MIDI library: https://github.com/FortySevenEffects...o_midi_library for full support.

    Note: Teensy can emulate MIDIUSB with a MIDI USB type selected so the same code will be compatible with both Arduino and Teensy.

Posting Permissions

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