Skip to content

py4pd allows write PureData objects using Python. The main goal is to allow easy IA, Scores, Graphics, and bring to Pd data types as array, np.arrays, list, dict, and others.

License

Notifications You must be signed in to change notification settings

charlesneimog/py4pd

Repository files navigation

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.

About

py4pd allows write PureData objects using Python. The main goal is to allow easy IA, Scores, Graphics, and bring to Pd data types as array, np.arrays, list, dict, and others.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •