amiika / ziffers

Numbered musical notation for composing algorithmic and generative melodies
MIT License
82 stars 5 forks source link

Add new transposition function for parsed melodies #39

Closed amiika closed 3 years ago

amiika commented 4 years ago

Currently there is undocumented :add parameter that increases or decreases the degree values, that works like:

zplay "0 1 2 3", add: 1 -> "1 2 3 4"

Problem with that is that it is done before/during parsing. Add new transposition function:

m = zparse "0 1 2 3 4"
transposition m, 3 -> "3 4 5 6"
amiika commented 3 years ago

Done in Ziffers 2