[PD] parsing the netreceive data

Paris Treantafeles paris at parisgraphics.com
Sat May 21 22:00:11 CEST 2005


hi list,

i'm experimenting with netsend/receive and have a question about the 
data that is received.

on the machine where i have netsend i have messages like:

send valRed $1
and
send valBlue $1

where each send message gets numerical values.


on the machine where i have netreceive i have a print object.
which is correctly printing things like
valRed 145
valBlue 203

my stupid question is how do i parse this data to use it with objects?
i tried using a number atom and setting the receive symbol value to 
valRed, but it gets nothing.
i tried using unpack after the netreceive object eg.

[netreceive]
|
[unpack s 0]
		\
		[145]

but then number changes when i vary valRed and valBlue

what's the right way to have objects on the receiving end use the 
values that are sent?

thanks,
p





More information about the Pd-list mailing list