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,
Steve

#44828
Jul 23, 2009 at 6:07am

Nevermind. I used the flashserver external:
http://www.nullmedium.de/dev/flashserver/

…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.

http://www.youtube.com/watch?v=Ik1nMLxg5aU

#161365
Mar 18, 2010 at 11:49am

what version of actionscript were you using for the flashserver?

#161366
Mar 18, 2010 at 11:50am

what version of actionscript were you using for the flashserver?

#161367

You must be logged in to reply to this topic.