amiika / ziffers

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

Fix euclidean syntax #60

Closed amiika closed 2 years ago

amiika commented 2 years ago

Current implementation fails with note length syntax like: "(q 2 3 h 2)<3,4>(2 h2)", since it defaults to ring like behaviour which also randomizes plain note lengths. Current workaround is using lists inside euclidean syntax like: ((q 2 3 h 2))<3,4>((2 h2)).

Add syntax like:

"(q 2 3 h 2)<3,4>(2 h2)" # Select values as a ring
"(q 2 3 h 2)>3,4<(2 h2)" # As whole
"(q 2 3 h 2)>3,4>(2 h2)" # As a ring on beat, as whole off beat
amiika commented 2 years ago

Done.