Embed Xcode Teensy3.1 usbMIDI

Status
Not open for further replies.

Van

Well-known member
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
 
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).
 
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
 
Status
Not open for further replies.
Back
Top