[PD] Netsend multiple values
max at revolwear.com
Wed Mar 17 00:51:27 CET 2004
A question about the netsend object: how to send two coordinates in one
value such as x= 395, y= 693 to a netsend message 395;693?
(see attached patch)
I do not want to use pack, because I receive the data in a terminal by a c++
Can I use makefilename to combine the data in one value?
OK, no I don't think there's any way to get makefilename to do what you
want. And I don't know of any way to do what you want. Perhaps you should
include the information below and repost to the list. But I'm pretty sure
that you can't do this without some manipulation at the receiving end.
> Yes, I receive the signal by a c++ program on the other side and I would
> like to send the signal from pd in the proper format rather than modifying
> it at the other side.
> Can pd do that? Maybe with makefilname? But how?
> > You must be receiving it in some sort of script or something right?
> > you just i.e. (Perl) @myArray = split(/ /, $string);
> > and break them up that way?
> >> ä, no.
> >> Sorry for being imprecise, I receive the signal not in an other pd, but
> >> a terminal window, so I can not use unpack. Any other suggestion?
> >>> Use [pack 0 0] to combine them into one and then [send $1 $2] then use
> >>> [unpack 0 0] to separate the messages at the other end.
> >>>> A question about the netsend object: how to send two coordinates in
> >>>> value such as x= 395, y= 693 to a netsend message 395;693?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 1299 bytes
Desc: not available
More information about the Pd-list