onsdag 3 februari 2010

MIDI from Processing to Ableton Live!


There was success! I can now send MIDI messages from Processing to Ableton Live.
I use the MidiBus for Processing, which had some basic example that got me started, and the internal Midi loopback device in Mac OS X (called busses, reachable from Applications/Utilities/Sound and Midi. It's just to go into the Midi View through the Window menu and be sure that the IAC-driver is enabled, like in the picture.

Then it's just to enable that midi-input as a Track (or remote) in Ableton.

The Basic.pde, that followed midibus, shows the following devices:

Available MIDI Devices:
----------Input----------
[0] "Buss 1"
[1] "Port 1"
[2] "Real Time Sequencer"
----------Output----------
[0] "Buss 1"
[1] "Port 1"
[2] "Real Time Sequencer"
[3] "Java Sound Synthesizer"
If i initialize the midi-object with the Buss1 as output, I can speak to Live with midi!

I found a handy midi-reference (but then I know midi from before quite well). This one is on bit-level. This one is also on bitlevel, and is the Midis own.

However, there are some problems involved in handling midi-events. First and foremost: Notes have to be turned of. This can be solved by using some kind of queue for all the events. A more serious problem is that every program handles midi in different ways - after all, it has very rudimentary "data types" - notes on, control changes and patch-changes.

This can be overcomed by making a special setup in Live, which always is loaded when one want to work with the prototype. That's acceptable.

Now - it's just to start working! :)

Inga kommentarer:

Skicka en kommentar