Skip to content

Latest commit

 

History

History
executable file
·
56 lines (41 loc) · 2.02 KB

README.md

File metadata and controls

executable file
·
56 lines (41 loc) · 2.02 KB

Logo

py4pd

Python in the PureData environment.

License Release DOI

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, and pyAudioAnalaysis;

Wiki | How to install and Use

For Developers

Just one thing, the development of this object occurs in de develop branch, the main branch corresponds to the last release available in Deken.

New Pd Object using Python

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")

Building from Source

  • To build from the source code:
cmake . -B build -DPYVERSION=3.12
cmake --build build

On windows you need Mingw64.