Closed amiika closed 5 years ago
Generative fractal melodies using regexp is super simple in ruby, for example:
t = {"0"=> "10010", "1"=>"1?" } n = "0" 3.times { n = n.gsub(Regexp.union(t.keys),t) } print n
Add parameter for number of "generations" and "axioms" that supports ziffers syntax.
lsystem function Implemented in the new version. This ended up being bit more complex than single gsub. Implementation also supports context dependent matching and stochastic rules.
Generative fractal melodies using regexp is super simple in ruby, for example:
Add parameter for number of "generations" and "axioms" that supports ziffers syntax.