[chuck-users] OSC reception not working

volker böhm vboehm at gmx.ch
Mon May 5 08:23:53 EDT 2008


hi sciss,
your script works fine, if you add

while(true)
     1::second=>now;

at the end to keep your program running.

volker.


On 04 May 2008, at 20:43, Sciss wrote:
> hi,
>
> 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...
>
> ChucK:
>
> OscRecv recv;
> 6449 => recv.port;
> recv.listen();
> recv.event( "/test, i" ) @=> OscEvent oe;
> spork ~ pollOscEvent();
>
> fun void pollOscEvent()
> {
>     while ( true )
>     {
>         oe => now;
>
>         while( oe.nextMsg() )
>         {
>             <<< "LALA" >>>;
>             <<< oe.getInt() >>>;
>         }
>     }
> }
>
> SC:
>
> NetAddr( "127.0.0.1", 6449 ).sendMsg( "/test", 33 );
>
>
> what am i doing wrong? i tried other ports without success...
>
> thanks, -sciss-
>



More information about the chuck-users mailing list