Hi!<br><br>Do you get anything at all, i.e., do you see LALA? If not maybe you could add a printout before the while(oe.nextMsg()) loop. <br><br>I've fiddled around a little bit with OSC, but just in ChucK and in Java (using raw UDP). I tried looking a bit at the docs for PD and SC, but I didn't find anything on OSC right away (I don't know if the OSC acronymn was well-chosen - you get a lot of hits on "oscillator" when searching on synth sites). Are you sure that NetAddr().send() and the PureData stuff formats the OSC message according to "/test, i" properly, aligning the integer, inserting zeroes and so on? I don't see the ", i" part in the sender, could it mistake the argument for a float instead, thus needing people to listen for "/test, f" instead? I'm guessing the senders in PD and SC don't want you to add the argument type list.<br>
<br>A basic sanity test could be to implement a sender in another ChucK program and use that to send to your existing listener. You could have some network config problem maybe. <br><br>Just some random guesses.<br><br>/Stefan<br>
<br><div class="gmail_quote">On Sun, May 4, 2008 at 8:43 PM, Sciss <<a href="mailto:contact@sciss.de">contact@sciss.de</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;">
hi,<br>
<br>
i'm trying to send an OSC message from SuperCollider to chuck, which doesn't work. no matter what i do, the OscEvent seems never to be decoded...<br>
<br>
ChucK:<br>
<br>
OscRecv recv;<br>
6449 => recv.port;<br>
recv.listen();<br>
recv.event( "/test, i" ) @=> OscEvent oe;<br>
spork ~ pollOscEvent();<br>
<br>
fun void pollOscEvent()<br>
{<br>
while ( true )<br>
{<br>
oe => now;<br>
<br>
while( oe.nextMsg() )<br>
{<br>
<<< "LALA" >>>;<br>
<<< oe.getInt() >>>;<br>
}<br>
}<br>
}<br>
<br>
SC:<br>
<br>
NetAddr( "<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>", 6449 ).sendMsg( "/test", 33 );<br>
<br>
<br>
what am i doing wrong? i tried other ports without success...<br>
<br>
thanks, -sciss-<br>
<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!