Closed amiika closed 2 years ago
Ruby and Sonic Pi also seems to support YAML format so the character mapping could be loaded from a file like:
---
:q:
:type: :rest
:value: 0.25
:comment: Quarter note
:h:
:type: :rest
:value: 0.5
:comment: Half note
:Z:
:type: :control
:comment: Custom rest control eg. Z0.4
...
I think this is already done (not the yaml part) but should be documented further how to use it.
It could be possible to rewrite the ziffers parser to support custom character mapping to control symbols, like:
setMapping({"S": :sustain, "A": :attack})
and
setNoteLengths({"p": 0.25236, "l": 0.3242})