Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: 3 Part Polyphony , Previous: Common Music Examples , Up: Common Music Examples , Home: Disclaimer

Fomus

2 Part Polyphony (FOMUS Chooses the Voice)

(defparameter *part* (new fms:part :instr '(:piano :simultlim 1) :partid 'pno))

(defun polygen (voice len minp maxp)
  (process repeat len
    output (new fms:note
             :off (now)
             :voice voice
             :partid 'pno
             :note (between minp maxp)
             :dur 1/2)
    wait 1/2))

(events (list (polygen '(1 2) 20 50 80) (polygen '(1 2) 20 40 70)) "/tmp/fomus.ly" :parts *part* :view t)

ex_cm_poly2.jpg
Figure 18: 2 Part Polyphony (FOMUS Chooses the Voice)