[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Re: OSC trouble Solution
tom tlalim wrote:
i thought there may be a way in sclang to find out what ports other
apps are sending from and by that make it possible to use NetAddr with
an OSCresponder. (the same way how scsynth knows to reply only to the
sending address)
sorting by names works nicely too.
Well when i was investigating the port problem, i did this:
60000.do{arg i; n = NetAddr("127.0.0.1", i ) ;
q=OSCresponder(n,'/c_set',{arg a,b,c;
[a,b,c,i].postln}).add
}
Awesome, huh ?
Just make sure to remove the 59999 listeners you don't need after you
see which one responded ;-)
As you can see, I was going to extremes to solve this problem.
jostM