py4pd allows write PureData Objects using Python instead of C/C++. The main goal is to allow easy IA, Scores, Graphics, and bring to Pd possibilities with array, list and others types. With Python, you can:
- Use scores inside PureData;
- Use svg/draws as scores;
- OpenMusic functions in libraries like
om_py
,music21
,neoscore
, and others; - Sound analisys with
magenta
,librosa
, andpyAudioAnalaysis
;
- Go to Docs.
Just one thing, the development of this object occurs in de develop
branch, the main branch corresponds to the last release available in Deken
.
import pd
def mylistsum(x, y):
x_sum = sum(x)
y_sum = sum(y)
return x_sum + y_sum
def mylib_setup():
pd.add_object(mylistsum, "py.listsum")
- To build from the source code:
cmake . -B build -DPYVERSION=3.12
cmake --build build
On windows you need Mingw64.