Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: Mark Objects , Previous: Piano Chords , Up: Lisp Examples , Home: Disclaimer

Fomus

Quantizing/Chords

(fomus
 :output '(:lilypond :view t)
 :parts
 (list
  (make-part
   :name "Piano"
   :instr :piano
   :events
   (loop repeat 10
     for off = (random 30.0)
     and dur = (1+ (random 3.0))
     collect (make-note :off off :dur dur :note (+ 60 (random 25)))))))

ex_chords.jpg
Figure 9: Quantizing/Chords