6 texidoc= "@cindex Add Stacato
7 Using @code{make-music}, you can add various stuff to notes. In this
8 example staccato dots are added to the notes. For this simple case,
9 it is not necessary to use scm constructs (see @code{separate-staccato.ly}).
13 #(define (make-script x)
14 (make-music 'ArticulationEvent
15 'articulation-type x))
17 #(define (add-script m x)
19 (equal? (ly:music-property m 'name) 'EventChord)
20 (set! (ly:music-property m 'elements)
22 (ly:music-property m 'elements))))
25 #(define (add-staccato m)
26 (add-script m "staccato"))
30 a b \applymusic #(lambda (x) (music-map add-staccato x)) { c c }
32 \paper{ raggedright = ##t }