OSC formatting MAX
I am trying to figure out if there is a way to automatically format my data according to the OSC protocol to send it to another program. There are several posts in the forum on this general topic but none which have directly addressed this question.
https://cycling74.com/forums/index.php?t=msg&goto=131728&rid=0&srch=udpsend#msg_131728
https://cycling74.com/forums/index.php?t=msg&goto=130265&rid=0&srch=udpsend#msg_130265
Using udpreceive I have managed to receive data form this other program (TouchDesigner), but using udpsend to send it out of Max, I can't seem to see it coming in to that other program.
In one of the posts cited above jvkr stated: "What the udpsend object sends out does not comply with the OSC standard."
So do I just have to format the datas manually then?
Check out the [OpenSoundControl] object and help patch on the CNMAT
site.
jp
On Mar 27, 2008, at 5:26 PM, mtuters wrote:
>
> I am trying to figure out if there is a way to automatically format
> my data according to the OSC protocol to send it to another program.
> There are several posts in the forum on this general topic but none
> which have directly addressed this question.
>
> https://cycling74.com/forums/index.php?t=msg&goto=131728&rid=0&srch=udpsend#msg_131728
> https://cycling74.com/forums/index.php?t=msg&goto=130265&rid=0&srch=udpsend#msg_130265
>
> Using udpreceive I have managed to receive data form this other
> program (TouchDesigner), but using udpsend to send it out of Max, I
> can't seem to see it coming in to that other program.
>
> In one of the posts cited above jvkr stated: "What the udpsend
> object sends out does not comply with the OSC standard."
>
> So do I just have to format the datas manually then?
thank you for that jp,
i went there on your suggestion and i downloaded this thing called "CNMAT_MMJ-Depot"
hidden in there under tutorials/OSC is 00-OSC_intro.mxb
in there it talks about OSC over a network and the OpenSoundControl object which is supposed to encode the data as OSC packets.
but when i click help on it, Max says this is a bogus object.
i'm quite green with Max, is this because i haven't placed something from the CNMAT_MMJ-Depot in some extensions library in the MaxMSP4.6/Cycling74 folder somewhere?
> In one of the posts cited above jvkr stated: "What the udpsend object sends out does not comply with the OSC standard."
I'm not really sure what's meant by this. udpsend just sends out what
you give it, like float, int, string . You have to set the OSC
addresses yourself like "/video dozer.mov" "/video/speed/ 0.5" etc.
What are the address spaces in TouchDesigner and what messages are
they expecting? Once you know this, you should be able to use udpsend
without problem. I use it all the time and have never had issues.
wes
Sounds like you downloaded just the depot patches. They make use of
several objects developed by CNMAT that you can download altogether or
individually. If you're just interested in formating OSC messages,
scroll down on the link I sent you to the OpenSoundControl object.
Click on the "MD5" link beside the platform you're running. After
downloading and uncompressing, you should find the
OpenSoundControl.mxo file and the OpenSoundControl.help file. Put the
former in the Cycling '74/externals folder and the latter in the max-
help folder. You can just open the help file, and there's a working
example.
jp
On Mar 27, 2008, at 7:22 PM, mtuters wrote:
>
> thank you for that jp,
>
> i went there on your suggestion and i downloaded this thing called
> "CNMAT_MMJ-Depot"
> hidden in there under tutorials/OSC is 00-OSC_intro.mxb
> in there it talks about OSC over a network and the OpenSoundControl
> object which is supposed to encode the data as OSC packets.
> but when i click help on it, Max says this is a bogus object.
>
> i'm quite green with Max, is this because i haven't placed something
> from the CNMAT_MMJ-Depot in some extensions library in the MaxMSP4.6/
> Cycling74 folder somewhere?
>
>
Quote: mtuters wrote on Thu, 27 March 2008 19:22
----------------------------------------------------
> thank you for that jp,
>
> i went there on your suggestion and i downloaded this thing called "CNMAT_MMJ-Depot"
> hidden in there under tutorials/OSC is 00-OSC_intro.mxb
> in there it talks about OSC over a network and the OpenSoundControl object which is supposed to encode the data as OSC packets.
> but when i click help on it, Max says this is a bogus object.
>
> i'm quite green with Max, is this because i haven't placed something from the CNMAT_MMJ-Depot in some extensions library in the MaxMSP4.6/Cycling74 folder somewhere?
>
>
----------------------------------------------------
You were here?
If you downloaded the "everything" package from there, then add it to your search path (either with the file preferences... menu item or by throwing it in your "patches" folder in the Max folder).
If not, download the OpenSoundControl object from that page. In a nutshell, you want to put that between the data you are wanting to send and the udpsend object. The object sends out OSC packets when it receives a bang.
mz
About the format issues of udpsend/receive not being compliant with OSC, this is true. The reason is that, what we read as /something/other/ is not what's being sent over the net in a compliant OSC communication. There should be bits in between formatted in a certain way (check OSC specs of you want to know deeply), but udpsend just sends what is given. OSC object formats the message, so we can send it with udpsend ^_^