adding USB MIDI on dodeca. easy!

A Portland based collective focused on creating high quality artistic & functional panels for modular synths.

Moderators: Kent, phidelity

Post Reply
User avatar
Neutron7
Oldschool bleeper
Posts: 1950
Joined: Sun May 23, 2010 12:24 pm

adding USB MIDI on dodeca. easy!

Post by Neutron7 » Thu Aug 31, 2017 1:41 pm

Coding for usbMIDI is easy for dodeca. in arduino, just change the "usb type" to serial + MIDI and everywhere in the code (before setup) you see something like

MIDI.setHandleNoteOn(HandleNoteOn);

copy and paste that to a new line and add lower case "usb"

usbMIDI.setHandleNoteOn(HandleNoteOn);

You can send MIDI from your evil computer DAW to your DODECA faster than MIDI speed. (on my computer, the device was called "teensy MIDI" in win 10 studio one, mileage may vary with mac etc.

note! usb MIDI only works for single dodeca, not daisy chained slaves, like the second unit on dubldeca.pretty sure it can be done but an additional wire needs to be connected between the 2 teensys, and the code altered a bit.

we will make a USB breakout panel with USB socket, and a couple of attenuverter which are always handy with dodeca.

User avatar
ignatius
Super Deluxe Wiggler
Posts: 15492
Joined: Tue Dec 23, 2008 4:03 pm
Location: oregon
Contact:

Post by ignatius » Thu Aug 31, 2017 7:25 pm

ohhhh.. that's dope.

shout it from the rooftops!

User avatar
nevetsokyeron
Wiggling with Experience
Posts: 306
Joined: Sat Mar 12, 2016 10:38 pm
Location: Austin TX
Contact:

Post by nevetsokyeron » Mon Sep 11, 2017 1:22 am

FWIW - according to this:
https://www.pjrc.com/teensy/td_midi.html

We're limited to
usbMIDI.setHandleNoteOff(OnNoteOff)
usbMIDI.setHandleNoteOn(OnNoteOn)
usbMIDI.setHandleVelocityChange(OnVelocityChange)
usbMIDI.setHandleControlChange(OnControlChange)
usbMIDI.setHandleProgramChange(OnProgramChange)
usbMIDI.setHandleAfterTouch(OnAfterTouch)
usbMIDI.setHandlePitchChange(OnPitchChange)

Clock, start, stop and continue are not available. Is that right? :(

UPDATE - this is not entirely correct. You CAN get clock and whatnot, but it uses usbMIDI.setHandleRealTimeSystem(). I think some examples will get updated on the github sometime soon.
Last edited by nevetsokyeron on Fri Sep 15, 2017 5:41 pm, edited 2 times in total.

User avatar
nevetsokyeron
Wiggling with Experience
Posts: 306
Joined: Sat Mar 12, 2016 10:38 pm
Location: Austin TX
Contact:

Post by nevetsokyeron » Mon Sep 11, 2017 1:36 am

Also very important to include:

usbMIDI.read();

Post Reply

Return to “Magpie Modular ”