MMML extension for event based framework for generative art
Project description
mutwo.mmml
MMML (mutwos music markup language) extension for event based library mutwo.
This extension implements:
mutwo.mmml_converters
Installation
mutwo.mmml is available on pypi and can be installed via pip:
pip3 install mutwo.mmml
Example usage
MMML expressions represent exactly one mutwo event. But the event can be nested:
{{! We can write comments using mustache. }}
{{! (We can also add variables using mustache) }}
{{! Let's express one simultaneous event that contains our music. }}
sim music
{{! It contains two sequences: a violin and a cello voice. }}
seq violin
{{! 'n' is used to express a note. }}
n 1/4 a5 p
n 1/4 bf5
n 1/4 a5
{{! 'r' is used to express a rest. }}
r 1/4
n 1/4 a5 mf
n 1/4 bf5 mp
n 1/4 a5
r 1/4
seq cello
n 1/2 c3 p
r 1/2
n 1/2 d3 p
r 1/2
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mutwo.mmml-0.6.0.tar.gz
(20.1 kB
view details)
Built Distribution
File details
Details for the file mutwo.mmml-0.6.0.tar.gz
.
File metadata
- Download URL: mutwo.mmml-0.6.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee42115ea1c467e50abd7d055b6ebcbd7a518f3f5f4dac3526abbcf8490b4648 |
|
MD5 | efc9dd45ec5baba47c7cd4dac9309c1a |
|
BLAKE2b-256 | 01f9e3d66bdf5641ab68568aac52138f3bfc153fbee40b173c0fb0c96f7e509e |
File details
Details for the file mutwo.mmml-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: mutwo.mmml-0.6.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b29e71a9e7ea226480142466a5c98431dd9740ce8e30ac36c3306c29e771f2a |
|
MD5 | d1a762b712dc57aee25db29ac9f93ab4 |
|
BLAKE2b-256 | e1bba08831c7d61562072ebd59073af35aedff80d60e6c46f9bf3524f62c9fa9 |