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."
11 #(define (make-script x)
12 (make-music 'ArticulationEvent
13 'articulation-type x))
15 #(define (add-script m x)
17 (equal? (ly:music-property m 'name) 'EventChord)
18 (set! (ly:music-property m 'elements)
20 (ly:music-property m 'elements))))
23 #(define (add-staccato m)
24 (add-script m "staccato"))
28 a b \applyMusic #(lambda (x) (music-map add-staccato x)) { c c }
30 \layout{ ragged-right = ##t }