[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] OSC between PureData and SC
I read:
> in a PureData patch :
> the sendOSC object, sending it the message box
> 'connect localhost 57120' , or 'connect 192.0.0.1 57120' , then the
> message 'send /test' .
good, and I'd stick to localhost for now.
> in SC:
> o = OSCresponder(nil, '\hello', {arg time, responder, msg;
> [ time, responder, msg].postln;
> });
> o.add;
> (+ in PureData , the message box 'connect localhost 57120' returns
> an error : "SendData::SendHTMSocket()failure -- not connected")
hmm is sclang running before you connect ?
> in SC:
> //--send to pd
> n= NetAddr("127.0.0.1", 9999);
> n.sendMsg("/test", 123);
good
> and then I don't know what to do...
> I tried the object box dumpOSC with 9999 as argument in Puredata, but
> didn't get anything.
should work, to really use it you'll need sth. like [OSCroute /test]
these things work for me:
OSCresponder(nil, '/test', { arg time, responder, msg;
msg.postln;
}).add;
n= NetAddr("127.0.0.1", 9999);
n.sendMsg("/test", 2345);
find .pd file attached,
HTH
x
--
chris@xxxxxxxxxx Postmodernism is german romanticism with better
http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)
#N canvas 677 425 332 136 10;
#X obj 24 50 OSCroute /test;
#X obj 24 18 dumpOSC 9999;
#X floatatom 24 82 5 0 0 0 - - -;
#X obj 176 83 sendOSC;
#X msg 142 23 connect localhost 57120;
#X msg 176 50 send /test foo;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 4 0 3 0;
#X connect 5 0 3 0;