amiika / ziffers

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

Question: Rules with chords #40

Closed instantkaffee closed 3 years ago

instantkaffee commented 4 years ago

Is it possible instead of notes to use chords (roman numeral sytax) in rules.

amiika commented 3 years ago

Sure. In the end it is just string replacement. For example:

`load "~/ziffers/ziffers.rb"

Ziffers.debug

zplay "G'q0 4 123' i iv", rules: { " i "=>" i^m7 iv ", " iv "=>" vii iii i ", " vii "=>" iv ii " }, gen: 6, scale: :blues_major`