Next: , Previous: Spanner Marks (SAL), Up: SAL Examples


8.6 Staves and Clefs Signatures

8.6.1 Selecting Staves

Use the staff setting to override FOMUS's choice of staves. Staff numbering begins with 1, representing the highest staff in the part.

process myproc (n, r)
  repeat n
  fms:note(dur: r, pitch: 60, staff: pick(1, 2))
  wait r
end

sprout(myproc(16, 1/2), *filename*)

sal022.png

Figure 8.29: Staves

8.6.2 Clefs Signatures

Use the clef setting to override FOMUS's clef signature choice.

process myproc (n, r)
  with clfs = make-cycle({"treble" "treble" "treble" "treble" "bass" "bass" "bass" "bass"})
  repeat n
  for stf = 1 then 3 - stf
  for clf = next(clfs)
  fms:note(dur: r, pitch: 60, staff: stf, clef: clf)
  wait r
end

sprout(myproc(16, 1/2), *filename*)

sal060.png

Figure 8.30: Clefs