amiika / ziffers

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

Notation assignation for custom samples #13

Closed amiika closed 5 years ago

amiika commented 5 years ago

Playing degrees with samples works now with sample parameter.

Add syntax for and character assingment for multiple samples:

zplay "O X O X", samples: {"O"=>:drum_heavy_kick, "X"=>:drum_snare_hard} zplay "q B 1 2 3 h C 3 2 1", samples: {"B"=>:ambi_glass_rub, "C"=>:ambi_drone}

amiika commented 5 years ago

Implemented with alternative custom options parameter to set sample specific properties:

zplay "|: X O e XX q O :2|", samples: {"X": :bd_tek, "O": :drum_snare_soft}
zplay "|: O X X X X :4|", samples: {"X": :bd_tek, "O": {sample: :ambi_choir, opts:{rate: 0.3, sleep: 0}}}