The Purity library for Pure Data dynamic patching.

Purity is a Python library for Pure Data dynamic patching. The idea is to be able to harness the power of Pure Data for audio programming without having to use its graphical interface. Python's clear and intuitive syntax can be used with profit in order to create intricate patches with advanced string handling, graphical user interfaces and asynchronous network operations. Purity uses Twisted, an event-driven Python framework.


Copyright 2009 Alexandre Quessy <>

Purity is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Purity is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the gnu general public license along with Purity. If not, see <>.


Install Pure Data and other tools:

sudo apt-get install python-setuptools puredata mercurial python-twisted

Install Purity and start the example in a terminal window:

mkdir -p ~/src
cd ~/src/
hg clone purity
cd purity/
python build
sudo python install --prefix=/usr/local


Some examples are shipped with the purity Python package. To try them, run the examples scripts located in purity/examples

python purity/examples/
python purity/examples/
python purity/examples/


You might want to learn to program in Python using Twisted. See

The officiel Purity Web site is a wiki located at

The puresampler project is what Purity was made for. See


Developers will need those commands:

python build
sudo python develop --prefix=/usr/local
python sdist
python register sdist upload