Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: Semi-Orchestra Score , Previous: Percussion 2 , Up: Lisp Examples , Home: Disclaimer

Fomus

Percussion with Automatic Durations

(fomus
 :output '(:lilypond :view t)
 :parts (list
         (make-part
          :name "Snare Drum"
          :instr '(:percussion :percs ((:snare-drum :note a3)))
          :events (loop for o from 0 to 40 by 1/2 when (= (random 2) 0) collect
                                                                        (make-note :off o
                                                                                   :note :snare-drum)))))

ex_perc_autodurs.jpg
Figure 13: Percussion with Automatic Durations