Puredata Plugin for Godot 4.x
Integrates libpd into the Godot Engine via gdextension
Refer to the official libpd wiki: https://github.com/libpd/libpd/wiki Almost all methods are exposed in the plugin with sane function names.
-
Change directory to
gdpuredata/gdextension/gdpuredata/libpd
and runmake STATIC=true
. This will build a static library of the libpd module for the gdextension. -
Go back up a folder to
gdpuredata/gdextension/gdpuredata
and runscons
. This will create a binary ingdpuredata/gdextension/demo/bin
. You will need to move this binary to/gdpuredata/addons/
for the correct platform. There are set paths in the/addons/gdpuredata.gdextension
file. Adapt to your setup.
The plugin is exposed as a Godot node called GDPureDataHandle
Check the demo scene for an example
The default buffer length is set at 0.5s. This may cause a latency too high for some. The latency can be fixed by adjusting the buffer length here.
The libpd project is under a BSD license. Check the relevant license in the repository.
All other code is released under MIT.