[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] udp question



Dear users,

I am trying to control a so called Lanbox from SC3 via ethernet using udp to
generate DMX data. 
I can't get it to work.
I saw max/msp examples that work fine. They are using cnmat's 'otudp' object
to send the data. 
How do I send the equivalent from SC3?

What I tried so far is:

~lan = NetAddr("10.0.0.202", 4777);
~lan.connect;

~test = Task({
    inf.do({ arg i;
        ~lan.sendRaw(Int16Array
        [192, 183, 0, 0, 202, 254, 0, 6, 0, 0, 0, 0, 0, 0, 0, 128]);
        i.postln;
        0.049.wait;
    })
}).play

~lan.disconnect;


but it doesn't work...


Thanks,

Marko

http://www.ciciliani.com