Receiving MIDI messages from FLOSC


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