[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Simple OSC question
I read:
> 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
ok, firstly I don't have sc handy right now to test but from memory:
> (
> o = OSCresponder(s.addr, '/anything',
> {arg time, responder, msg;
> "anything".postln;
> }).add;
> )
this sets up an OSCresponder on the sclang side _not_ the server,
and I had to set the adress to nil to get it to work.
> then executing
>
> s.sendMsg("/anything")
>
> it says FAILURE /anything Command not found?
you're sending this to the scsynth server process and the server of
course knows nothing about your clientside OSC responders.
> How can I create my own commands with an OSCresponder?
I'm not sure I understand what you want to do but basically
sending to the lang from the lang (is that really useful ?)
you would do a:
(
var sc, port = 57120; // sclang port
sc = Server(\sc, NetAddr("127.0.0.1", port));
sc.sendMsg("/anything", "blabla");
)
HTH
x
--
chris@xxxxxxxxxx Postmodernism is german romanticism with better
http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)