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

Re: [sc-users] Simple OSC question




On Sep 27, 2005, at 10:08 PM, Nicholas Williams wrote:

Hello,

I am trying to set up my own OSC commands in SC3, but I can't get it to work.
Can someone tell me why, after executing

(
   s=Server.local
   s.boot
)

(
o = OSCresponder(s.addr, '/anything',
           {arg time, responder, msg;
           "anything".postln;
       }).add;
)

then executing

s.sendMsg("/anything")

it says FAILURE /anything Command not found? How can I create my own commands with an OSCresponder?

Try this:

(
o = OSCresponder(nil, '/anything', {arg time, responder, msg;
	"anything".postln;
 }).add;
)

a = NetAddr("127.0.0.1", 57120);
a.sendMsg("/anything")