thanks a bunch, OSC it is, on port 3333, from the reacTable TUIO server.<br><br>I figured out that I needed ";\n" on my messages for the router to figure them out.<br><br>here is my netclient in PD, i will be making my server available also when I get that darn BLOG up.
<br><br>agent engram<br><br><div class="gmail_quote">On Jan 13, 2008 7:18 AM, IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Agent Engram wrote:<br>>> will output binary data in the form of lists of byte-values.<br>><br>> so this may be a misunderstanding. I am writing my own server that<br>> intercepts the OCS events, that all works. what I am trying to figure out is
<br><br></div>since you keep calling it OCS, i guess my assumption that you mean OSC<br>(Open Sound Control) is wrong.<br>could you please tell me what OCS is is?<br><div class="Ih2E3d"><br>> if i wanted to send out messages to net client for instance a string that
<br>> was something like id 56; x 200; y 300; rot 0.923; what would I need to do<br>> to parse the netclient result.<br>><br>> I have tried [route x]-----[unpack $1] but that doesnt seem to work, but<br>> when i print the message using [print client1] it prints it just fine.
<br><br></div>might be a problem with the parsing of your string.<br>when you send a message to Pd (e.g. [netreceive]), it will parse the<br>string received and try to interpret it as a pd-message.<br>e.g. the string "id 56" will be split into a symbol-atom "id" and a
<br>number "56".<br><br>if your string is somehow "weird" (e.g. because you send "56,4" instead<br>of "56.4") Pd's built-in parser might parse the string in an unexpected<br>way. (
e.g. "56,4" will become a symbol "56,4"!)<br><br>[netclient] is an external, probably it uses some broken parser.<br><br>2 suggestions:<br>- if you really mean OSC intead of OCS, then try sending OSC data to Pd
<br>from your server, if that is feasible.<br>- if you don't need a bidirectional connection between your server and<br>Pd but are happy with a unidirectional one, use [netreceive] instead;<br>this object is built-into Pd and certainly better tested.
<br><br>gfmadfr<br><font color="#888888">IOhannes<br></font></blockquote></div><br><br clear="all"><br>-- <br>-----------<br>i am an agent implanted into your unconscious when you abducted by the travelers. look for signs of me in your life.