Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: Staccato and Accent Marks , Previous: Examples , Up: Examples , Home: Disclaimer

Fomus

Lisp Examples

Simple Example

(fomus
 :output '(:lilypond :view t)
 :parts
 (list
  (make-part
   :name "Piano"
   :instr :piano
   :events
   (loop
    for off from 0 to 10 by 1/2
    collect (make-note :off off
               :dur (if (< off 10) 1/2 1)
               :note (+ 48 (random 25)))))))

ex_simp_ex.jpg
Figure 4: Simple Example