amiika / ziffers

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

Add variable assingment for random syntax #15

Closed amiika closed 5 years ago

amiika commented 5 years ago

It would be nice to be able to assign variable once and use it multiple times.

For example: "<?=(1,7)> ? 12 ? 23 ? 34"

This would allow to generate lsystem rules to generate brownian motion with random cuts. Like: " 1 1 1 1 1 1 1 1 1 ", {/([1-9]) ([1-9]) ([1-9])/=>"0.3%=<?=(-7,7)>'$1+?' '$2+?' '$3+?'"}, 40

amiika commented 5 years ago

Added the syntax for variable assingment ... brownian motion under progress ... tricky regexp.