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.0.2.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for alda_python-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f40e8725c8c53e4a1a69c3d8e8e46b226b283e416123f6a1a2b0576ae49dec9 |
|
MD5 | fc21ebb2c81f219dab2e6623fac45f62 |
|
BLAKE2b-256 | 3801e8c9f5475fd802899a7a21c1a8a725bd5a502a77f45bd94e8fb0adef05b2 |