Skip to main content

alda-python

Python client for Alda (https://alda.io/).

Version Status License Checked with mypy Code style: black Imports: isort

Usage

  1. Download and install Alda per the Install instructions
  2. Run the Alda REPL as a server using port 12345:
    $ alda repl --server --port 12345
    
  3. In a different terminal, run an interactive Python session (e.g. IPython)
  4. Install alda-python
    !pip install --user alda-python
    
  5. Import and initialize the Alda Python client:
    from alda import Client
    
    client = Client()
    
  6. 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 
    """
    
  7. Play the code:
    client.play(code)
    

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alda_python-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

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

Hashes for alda-python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9bfea19a1aa061d63b566d334bbeb3fed7fc3f3ec641dfd2f0cca084e5c17833
MD5 9c94cef25010fbc00a8e0fa339429d22
BLAKE2b-256 030f31c376bd42f5d152f8901682afd64b69359a5827225acfedea2b1ff30fe5

See more details on using hashes here.

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

Hashes for alda_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a9930eb34452d1f9a4ebedf36bd0f9df355328930e01e8f1a4e6f36325a0a28
MD5 7891439f536807a06df63839d0bc0fd1
BLAKE2b-256 499f14ec8a73a34245b3a82494abe42897a78976387c1484aca7c1998c7605b0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page