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 (let ((m (make-music-by-name 'ArticulationEvent)))
15 (ly:music-set-property! m 'articulation-type x)
18 #(define (add-script m x)
20 (equal? (ly:music-property m 'name) 'EventChord)
21 (ly:music-set-property! m 'elements
23 (ly:music-property m 'elements))))
26 #(define (add-staccato m)
27 (add-script m "staccato"))
31 a b \apply #(lambda (x) (music-map add-staccato x)) { c c }
33 \paper{ raggedright = ##t }