« Return to Thread: NetAddr

Re: NetAddr

by nescivi :: Rate this Message:

Reply to Author | View in Thread

Hiho,

On Monday 03 March 2008 19:15:26 William Brent wrote:
> Thanks, all.  I'll post to the Pd list as well.  For the record though, the
> sendOSC object does require a port number, and I've got it set to 57120.

yes, that's probably the port it is sending *to*, which is correct, if you
want to receive the messages in sclang.

What you need to know is the port Pd is sending *from*.

sincerely,
Marije

> If I figure out what's up, I'll post back here for future reference...
>
>
> William
>
> On Mon, Mar 3, 2008 at 1:59 PM, Oswald Berthold <opt@...> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> > hi
> >
> > the problem is that pd is most likely not sending from 57120. the
> > sendOSC object would need a method for setting its outgoing
> > portnumber.
> >
> > to check, you can do a netstat on the sending machine, determine the
> > port used and put that into your NetAddr manually.
> >
> > bst, opt
> >
> > William Brent writes:
> >  > Hi,
> >  >
> >  > I'm using Pd/Gem to do some motion tracking - sending particular OSC
> >  > messages to SuperCollider when certain areas of the video have motion.
> >
> >  The
> >
> >  > only way I'm getting successful communication is to have the addr
> >
> > argument
> >
> >  > of OSCresponder set to nil.  When I specify a NetAddr for the video
> >
> > tracking
> >
> >  > computer in the standard way described in the helpfile, communication
> >
> > fails:
> >  > n = NetAddr("192.168.1.66", 57120);
> >  >
> >  > o = OSCresponder(n, '/movement/1', { |t, r, msg| msg[1].postln }).add;
> >  >
> >  > On the Pd side, things are the same either way: I make a connection to
> >
> > the
> >
> >  > SC machine's address, and start sending messages.  So the only
> >
> > difference
> >
> >  > between communication vs. failure is whether or not the OSCresponder
> >  > acknowledges messages from anywhere, or only from a specific address.
> >
> >  I
> >
> >  > guess this is just as much a question for people on the Pd list, since
> >
> > it
> >
> >  > might be the way messages are coming out of Pd.
> >  >
> >  > But maybe someone has already been down this path?  It would be nice
> >  > to limit the awareness of this OSCr to one address.
> >  >
> >  >
> >  > As usual, thanks...
> >  > William
> >  >
> >  >
> >  > --
> >  > William Brent
> >  >
> >  > "Great minds flock together"
> >  > Conflations: conversational idiom for the 21st century
> >  >
> >  > www.conflations.com
> >  > _______________________________________________
> >  > sc-users mailing list
> >  > sc-users@...
> >  > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.7 (GNU/Linux)
> > Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
> >
> > iD8DBQFHzHSu7u+hhWCy2kMRAncQAKCSqvH81ecbUu5P12uCzp8yfXxgKQCgqxV7
> > Pb7qM1K1gYwRecX1sQK9VtY=
> > =pNsD
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > sc-users mailing list
> > sc-users@...
> > http://lists.create.ucsb.edu/mailman/listinfo/sc-users


_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

 « Return to Thread: NetAddr