Receiving MIDI messages from FLOSC

Jul 22, 2009 at 1:56am

Receiving MIDI messages from FLOSC

Hey all, I’m working on a multi-touch MIDI controller using Flash as the UI. All the multi-touch stuff is done, the UI is there (and super customizable I might add) and now I’m working on an OSC > MIDI bridge in Max/MSP (I’m a Max newbie).

The bridge itself seems easy enough and I can send messages to FLOSC no problem. I would like to send type “m” arguments, but I do not know how to format the value.

On the Flash side, I have the following info available:

MIDI Port (eg, “0″)
Channel (eg, “14″)
Note (eg, “CC”)
Control (eg, “34″)
Value (eg, “127″)

Anything else I need? So how do I format each of these values and combine them into a value compatible with OSC’s “m” argument? If I can work with OSC’s native MIDI then it should save me some string parsing, right?

The OSC specification says the argument is a 4-byte number, but I don’t know how to format that into a string with this data into the XML.

Thanks in advance,

Jul 23, 2009 at 6:07am

Nevermind. I used the flashserver external:

…and made a custom messaging system. Just sending three integers up to Max and out to MIDI. Here’s some video where I’m controlling Ableton Live with a cigarette by way of my Flash UI.

Mar 18, 2010 at 11:49am

what version of actionscript were you using for the flashserver?

Mar 18, 2010 at 11:50am

what version of actionscript were you using for the flashserver?


You must be logged in to reply to this topic.