Search code examples
windowslibrariespuredata

Pure Data: use library on windows


I am trying to send an UDP message from Pure Data on Windows, but I am unable to install or use libraries.

I put the library files in "C:/Program/common files/Pd", but Pd doesn't recognize when I type "import libraryName" in a object and leaves it undetermined.

Does someone know how to use Pure Data libraries on Windows ?

Edit : The problem is not the syntax, you can find it in google. In fact, I found that you need to download a specific .dll to use libraries on windows.

But thanks to Umläute, I simply used the built in functions and now it works.


Solution

  • If you want to do udp communication, then you don't need any externals:

    • [netsend -u] will send FUDI messages over UDP
    • [netsend -u -b] will send any message over UDP (the -b is for binary, so you just pass it the raw list of bytes you want to transmit)
    • [oscformat] will create an OSC-message (as raw bytes) from a Pd-message

    You will need Pd>=0.46 for this (which you want anyhow)