I have two patches on Pure Data as per the image below. As you can see, each patch opens in a different process. How do I send the values of one (which contains the send object) to the other, which contains the receive?
-
How to make two different processes in Pure Data communicate?
-
Either use [pd~] and launch one of your processes with it (read its help patch, to see how the two processes can communicate), or use OSC, with [oscformat]->[list prepend send]->[list trim]->[netsend -u -b] on one process, and [netreceive -u -b]->[oscparse]->[route] on the other process. [netsend] should send to the local host, and they should use the same port.
-
@alexandros What is the purpose of the OSC stuff? Seems unneeded, I just go right into [netsend]. Just a habit from how you tend to use it or is there something I am missing?
-
@oid you're right there. A habit from using [netsend] to communicate with other software with OSC. TBH, have never used it sending raw bytes. If you need to send values to different places though, you'll probably have to come up with your own protocol, and OSC is just that, a protocol to facilitate networked communication, right?
-
@oid said:
@alexandros What is the purpose of the OSC stuff? Seems unneeded,
If I understand correctly, messages into netsend without using oscformat are sent in FUDI format, which is supported in... (quick web search)... aha, Pure Data and pretty much no other software anywhere else. So in this case, it's correct that OSC isn't needed because it's Pd on both ends of the line.
If you need to communicate with Processing, or SuperCollider, or vvvv, or Max, or Touch Designer, or xxx yyy zzz, then OSC is not a bad habit to get into.
hjh
-
Is it possible to send pointers from one process to another ? that would be a solution.
Esta lloviendo in Berlin...
-
@ddw_music fudi is so simple it makes it really easy to send stuff to pd from other programming environments like a lua or python interpreter. (or even bash for that matter)
you can just pipe text into the
pdsend
program and viola
but OSC is probably a good habit to get into using as well