Skip to content
Pure Data embeddable audio synthesis library
Objective-C C C++ Java C# Makefile Other
Find file
Failed to load latest commit information.
cpp reorganized all samples & tests by language, updated C & C++ sample M…
csharp libpd_init now returns 0 on success & -1 on failure to match C conven…
dist Added support for including native libraries in libpd.jar
java/org/puredata/core Update
javatests/org/puredata/core Updating Java tests.
jni Fixed incorrect pointer dereference.
libpd.xcodeproj Allow Xcode to generate a valid archive.
libpd_wrapper added doc link to libpd_wrapper sources, replaced old link to gitorious
libs added original mingGW LGPL pthreads dll
objc objc: added access to PdFile t_pd pointer
pure-data @ 991b183 updated podspec, updated pure-data upstream 0.46 branch which removed…
python reorganized all samples & tests by language, updated C & C++ sample M…
samples added test-extra.pd to c pdtest to make checking if LIBPD_EXTRAS is w…
.classpath cosmetic change
.gitignore reorganized all samples & tests by language, updated C & C++ sample M…
.gitmodules updated pure-data submodule to use sourceforge git
.project Added integration test for MIDI in particular Added bob~ and stdout to
CHANGES.txt small whitespace updates, bumped version 0.8.3
LICENSE.txt Added license info, improved tests
Makefile Fixing javalib build target. small whitespace updates, bumped version 0.8.3
libpd.podspec forgot to bump version in podspec, actually tagging now
libpd_win.sln removed example for now
mingw_build.bat Copy compiled dll to C# wrapper solution


Pure Data as an embeddable audio synthesis library

Copyright (c) Peter Brinkmann & the libpd team 2010-2015


See our website and book at

For documentation of libpd, see the wiki:

If you are using Processing, iOS, or Android, see our companion repositories:

Repository Layout


The folder containing the sources of Pd Vanilla and standard externals. This is a git submodule of Miller Puckette's official Pd git repository:


If you're cloning this repo, make sure to checkout the submodule:

git submodule init
git submodule update


This folder contains the source files that make up the core of libpd., Makefile, libpd.xcodeproj, libpd_win.sln

Build support for various platforms. Feel free to improve the build system in any way you see fit.

Currently the main Makefile builds a dynamic lib on Windows (in MinGW), Linux, & Mac OSX and has the following targets:

  • libpd: (default) builds if no target is specified, builds the
  • cpplib: builds libpd with the cpp wrapper
  • csharplib: builds libpdcsharp.dll (tested on Windows only)
  • javalib: builds libpdnative and the jni wrapper
  • clean: removes the object files
  • clobber: removes the linked library files
  • install: installs libpd C library (+ C++ if built) and headers, set location with prefix= (default: /usr/local)
  • uninstall: removes libpd C library and headers, set location with prefix= (default: /usr/local)

Makefile options allow for conditional compilation of libpd util and pd extra externals sources into libpd as well as other options:

  • UTIL=true, compiles libpd_wrapper/util ringbuffer and print concatenator
  • EXTRA=true, compiles pure-data/extra externals which are then inited in libpd_init()
  • DEBUG=true, compiles libpd with -Wall & no optimizations

For example, to build libpd with both util and extra:

make UTIL=true EXTRA=true

java, csharp, objc, cpp, python

Glue for using libpd with Java, C#, Objective C, C++ and Python. Feel free to improve or add support for other languages such as Lua.


Contains small sample programs and tests in the various supported langauges.

Xcode Project

libpd.xcodeproj provides an Xcode project to build libpd + the Obj-C wrapper as a static library for iOS & Mac OSX. Drag the libpd project into your existing Xcode project, then add libpd-ios (or libpd-osx) to the Linked Frameworks and Libraries in the General tab of your project target.

If you are unfamiliar with how static libraries work or how to use them in Xcode, see this useful tutorial.

Java Builds

Ready-made binaries for Java are available at libpd-java-build: (may not be up to date)


If you are using XCode to build iOS apps, you can use CocoaPods to add libpd to your project.

Use the following in your Cocoapods podfile:

pod 'libpd', :git => '', :submodules => true
Something went wrong with that request. Please try again.