Communicating with Pure Data in C
Solution 1:
there are numerous ways to communicate with a running Pd instance.
The most straightforward one is to use network communication:
-
[netreceive]
allows you to receive messages from another process, using the FUDI protocol. The following patch listens onUDP/9999
for incoming messages:
- on the C-side, just create a normal UDP-socket and send the data to
localhost:9999
(assuming your process runs on the same machine).
Alternative methods include using libpd, which is a library version of Pd and allows you to load Pd-patches directly in your program.