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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for alda_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d70f7ab9bf76afd9da71651be81e2070456a37069aa468a86dd7710c96d886 |
|
MD5 | 2b3b359399106929ae0295ac7cb20998 |
|
BLAKE2b-256 | f65ed1fb5142ca4318260de80031c09c3c21ec668f9698ec8d1ed3048749e46f |