MUFF WIGGLER Forum Index
 FAQ & Terms of UseFAQ & Terms Of Use   Wiggler RadioMW Radio   Muff Wiggler TwitterTwitter   Support the site @ PatreonPatreon 
 SearchSearch   RegisterSign up   Log inLog in 
WIGGLING 'LITE' IN GUEST MODE

adding USB MIDI on dodeca. easy!
MUFF WIGGLER Forum Index -> Magpie Modular  
Author adding USB MIDI on dodeca. easy!
Neutron7
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.
ignatius
ohhhh.. that's dope.

shout it from the rooftops!
nevetsokyeron
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.
nevetsokyeron
Also very important to include:

usbMIDI.read();
MUFF WIGGLER Forum Index -> Magpie Modular  
Page 1 of 1
Powered by phpBB © phpBB Group