Hello.
I have written a program in Visual Basic which passes data to a PD patch using a TCP socket. By using "netreceive" and a simple "print" box, the data is shown in the message window.
However, I would like to send multiple variables from the Visual Basic application to PD through the same socket. Is there anyway to do this?
I have tried using the receive function as the help for "netreceive" mentions that you can separate variables in this way, for example:
"receive var1" "receive var2"
But it doesn't seem to separate the data.
Any help on this would be gratefully appreciated.
Thanks.
Nick Giles.
Nick Giles wrote:
Hello.
application to PD through the same socket. Is there anyway to do this?
I have tried using the receive function as the help for "netreceive" mentions that you can separate variables in this way, for example:
"receive var1" "receive var2"
i don't understand what you are talking about precisely.
however, what you want to do is send (from VB) things like "var1 <v1>" and "var2 <v2>", e.g: "pitch 440" and "gain 0.5". then use [route var1 var2 ...] (e.g: [route pitch gain]) to separate yor variables based on their name.
mfg.a.sdr IOhannes
Nick Giles wrote:
Hello.
I have written a program in Visual Basic which passes data to a PD patch using a TCP socket. By using "netreceive" and a simple "print" box, the data is shown in the message window.
However, I would like to send multiple variables from the Visual Basic application to PD through the same socket. Is there anyway to do this?
if you are sending multiple messages from VB but only see one message received by Pd's [print] then they are probably being terminated incorrectly. are you terminating each message with a semicolon?