kriista
Member
So I've been using Arduino stuff for music for some time, and I always use it as serial, and send it into Max/MSP where I parse the stuff. This works ok, but I often have pretty serious kernel panics (greyscreen on a mac) related to serial/buffer stuff.
So what I want to do is setup an Arduino/Teensy to be a generic input device. So all digital inputs would be sent as 0/127 (binary) and analog inputs would end 0-127.
But the idea being that all inputs are being read and sent as midi.
There's a sacrifice in resolution for analog inputs this way, but in exchange for bulletproof stability (class-compliant MIDI).
I know there's the Maxuino library that lets you control everything on the Arduino from Max, but it, too, uses serial, and I want to avoid that.
I found this page here which looks pretty relevant:
http://www.pjrc.com/teensy/td_midi.html
I've never programmed using teensy before, much less reprogrammed the input chip. From the looks of it it's as simple as picking the 'USB type' in the teensy IDE?
So to setup 12analog in, and 22digital in (max inputs on a teensy3?), it would be a matter of picking the USB type and setting up code to read all analog/digital I/O and send corresponding MIDI CC/noteon messages?
A second bit would be setting up more or less the reverse. A friend of mine has build a voltage to relay box for me so that I can switch hardware stuff via MIDI. So I'd like to build another teensy to take midi INPUT from my computer, and set 0-5v on 16 digital pins. Would it be the same thing be reverse?
So what I want to do is setup an Arduino/Teensy to be a generic input device. So all digital inputs would be sent as 0/127 (binary) and analog inputs would end 0-127.
But the idea being that all inputs are being read and sent as midi.
There's a sacrifice in resolution for analog inputs this way, but in exchange for bulletproof stability (class-compliant MIDI).
I know there's the Maxuino library that lets you control everything on the Arduino from Max, but it, too, uses serial, and I want to avoid that.
I found this page here which looks pretty relevant:
http://www.pjrc.com/teensy/td_midi.html
I've never programmed using teensy before, much less reprogrammed the input chip. From the looks of it it's as simple as picking the 'USB type' in the teensy IDE?
So to setup 12analog in, and 22digital in (max inputs on a teensy3?), it would be a matter of picking the USB type and setting up code to read all analog/digital I/O and send corresponding MIDI CC/noteon messages?
A second bit would be setting up more or less the reverse. A friend of mine has build a voltage to relay box for me so that I can switch hardware stuff via MIDI. So I'd like to build another teensy to take midi INPUT from my computer, and set 0-5v on 16 digital pins. Would it be the same thing be reverse?