2 \sourcefilename "add-staccato.ly"
5 texidoc= "@cindex Add Stacato
6 Using @code{make-music}, you can add various stuff to notes. In this
7 example staccato dots are added to the notes."
10 #(define (make-script x)
11 (make-music 'ArticulationEvent
12 'articulation-type x))
14 #(define (add-script m x)
16 (equal? (ly:music-property m 'name) 'EventChord)
17 (set! (ly:music-property m 'elements)
19 (ly:music-property m 'elements))))
22 #(define (add-staccato m)
23 (add-script m "staccato"))
26 #(define-music-function (parser location music)
28 (music-map add-staccato music))
34 \layout{ ragged-right = ##t }