Python client for Alda (https://alda.io/)
Project description
alda-python
Python client for Alda (https://alda.io/).
Usage
- Download and install Alda per the Install instructions
- Run the Alda REPL as a server using port 12345:
$ alda repl --server --port 12345 - In a different terminal, run an interactive Python session (e.g. IPython)
- Install
alda-python!pip install --user alda-python - Import and initialize the Alda Python client:
from alda import Client client = Client() - Create some Alda code, for example:
code = """ (tempo! 90) piano: o3 c1/e/g/b | f2/a/>c/e ~ <e2/g/b/>d violin: o2 c1 ~ | f2 ~ g2 percussion: o2 [c8 r8 c8 r8 e8 c8 r8 c8] * 2 """ - Play the code:
client.play(code)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alda-python-0.1.0.tar.gz
(10.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alda-python-0.1.0.tar.gz.
File metadata
- Download URL: alda-python-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bfea19a1aa061d63b566d334bbeb3fed7fc3f3ec641dfd2f0cca084e5c17833
|
|
| MD5 |
9c94cef25010fbc00a8e0fa339429d22
|
|
| BLAKE2b-256 |
030f31c376bd42f5d152f8901682afd64b69359a5827225acfedea2b1ff30fe5
|
File details
Details for the file alda_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: alda_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a9930eb34452d1f9a4ebedf36bd0f9df355328930e01e8f1a4e6f36325a0a28
|
|
| MD5 |
7891439f536807a06df63839d0bc0fd1
|
|
| BLAKE2b-256 |
499f14ec8a73a34245b3a82494abe42897a78976387c1484aca7c1998c7605b0
|