[chuck-users] OSC reception not working

eduard aylon eduard.aylon at gmail.com
Mon May 5 07:11:10 EDT 2008


Hi Sciss,

I had the same with PD and Chuck and the reason was taht PD sends  
numbers as floats. The same may be true for SC. Probably you can force  
them to be sent as ints, or try to receive a float in Chuck and see if  
the message is recieved.

hope it helps,

eduard

On 4 May 2008, at 21:02, Sciss wrote:
> should add that it has nothing to do with SC, as the same problem  
> occurs from for example PD:
>
> #N canvas 505 179 435 193 10;
> #X obj 75 52 sendOSC;
> #X msg 39 17 connect 127.0.0.1 6449;
> #X msg 20 93 send /test 33;
> #X msg 209 17 connect localhost 6449;
> #X connect 1 0 0 0;
> #X connect 2 0 0 0;
> #X connect 3 0 0 0;
>
>
> Am 04.05.2008 um 20:43 schrieb Sciss:
>> 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-
>>
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



More information about the chuck-users mailing list