Forums > MaxMSP

Receiving MIDI messages from FLOSC

July 22, 2009 | 1:56 am

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,

July 23, 2009 | 6:07 am

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.

March 18, 2010 | 11:49 am

what version of actionscript were you using for the flashserver?

March 18, 2010 | 11:50 am

what version of actionscript were you using for the flashserver?

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP