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

Thread: Embed Xcode Teensy3.1 usbMIDI

  1. #1
    Member Van's Avatar
    Join Date
    Mar 2018
    Location
    Dresden, Germany
    Posts
    35

    Embed Xcode Teensy3.1 usbMIDI

    Hi,
    I'm trying to switch over and use Xcode for my projects. everything compiles fine except usbMIDI. (usbMIDI not found..)
    Any clue on how to set it up?
    greets, van

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,488
    I can't speak to Xcode details, but I can tell you the code depends on the gcc compiler being run with "-DUSB_MIDI". The default is "-DUSB_SERIAL", so if you can find a setting with Xcode for "-DUSB_SERIAL", change it to "-DUSB_MIDI". Or you could change it to "-DUSB_MIDI_SERIAL" to get both MIDI and USB Serial, which can be really helpful for troubleshooting if Xcode doesn't have a way to receive Serial.print() in just MIDI mode (as Arduino+Teensyduino can).

  3. #3
    Member Van's Avatar
    Join Date
    Mar 2018
    Location
    Dresden, Germany
    Posts
    35
    thank you very much!
    it is in the Teensy.mk file.
    changed the line:
    USB_FLAGS += -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DTIME_T=$(shell date +%s)
    to:
    USB_FLAGS += -DUSB_MIDI_SERIAL -DLAYOUT_US_ENGLISH -DTIME_T=$(shell date +%s)
    and it works!
    cheers, van

Posting Permissions

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