Skip to content

Commit

Permalink
Merge branch 'master' of github.com:charlesneimog/py4pd
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesneimog committed Oct 30, 2024
2 parents 0629749 + 50672f2 commit 5af4806
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,36 @@ py4pd allows write PureData Objects using Python instead of C/C++. The main goal
* OpenMusic functions in libraries like `om_py`, `music21`, `neoscore`, and others;
* Sound analisys with `magenta`, `librosa`, and `pyAudioAnalaysis`;

> [!TIP]
> Go to [Docs](https://www.charlesneimog.com/py4pd) to see examples.
## Wiki | How to install and Use

### Download py4pd
1. Open PureData, `Help->Find Externals->` search for `py4pd` then select py4pd and click on `Install`:
2. You must install Python.
* Go to [Docs](https://charlesneimog.github.io/py4pd).

* **Linux**: `sudo dnf install python3.12` or `sudo apt install python3.12`;
* **MacOS**: Go to https://www.python.org/downloads/release/python-3127/ and install normally.
* **Windows**: Go to https://www.python.org/downloads/release/python-3127/ and install normally.
## For Developers

## Wiki | Instructions for use
Just one thing, the development of this object occurs in de `develop` branch, the main branch corresponds to the last release available in `Deken`.

* Go to [Docs](https://www.charlesneimog.com/py4pd).
### New Pd Object using Python

## For Developers
``` py
import pd

Just one thing, the development of this object occurs in de `develop` branch, the main branch corresponds to the last release available in `Deken`.
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, you can follow the steps: [Compiling from Source Code.](https://github.com/charlesneimog/py4pd/blob/master/Resources/BUILD.md).
* To build from the source code:
``` sh
cmake . -B build -DPYVERSION=3.12
cmake --build build
```

On windows you need Mingw64.


0 comments on commit 5af4806

Please sign in to comment.