5 texidoc= "@cindex Add Stacato
6 Using make-music, you can add various stuff to notes. Here
7 is an example how to add staccato dots. Note: for this simple case
8 one would not use scm constructs. See separate-staccato.ly first.
12 #(define (make-script x)
13 (let ((m (make-music-by-name 'ArticulationEvent)))
14 (ly:set-mus-property! m 'articulation-type x)
17 #(define (add-script m x)
19 (equal? (ly:get-mus-property m 'name) 'EventChord)
20 (ly:set-mus-property! m 'elements
22 (ly:get-mus-property m 'elements))))
25 #(define (add-staccato m)
26 (add-script m "staccato"))
30 a b \apply #(lambda (x) (music-map add-staccato x)) { c c }
32 \paper{ raggedright = ##t }