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 on UDP/9999 for incoming messages:

network controlled feedback patch

  • 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.