3 texidoc= "Using make-music, you can add various stuff to notes. Here
4 is an example how to add staccato dots."
8 #(define (make-script x)
9 (let ((m (ly-make-music "Articulation_req")))
10 ;;(ly-set-mus-property m 'articulation-type 'staccato)
12 (ly-set-mus-property m 'articulation-type x)
13 (ly-set-mus-property m 'script x)
16 #(define (add-script m x)
17 (if (equal? (ly-music-name m) "Request_chord")
18 (ly-set-mus-property m 'elements
20 (ly-get-mus-property m 'elements)))
22 (let ((es (ly-get-mus-property m 'elements))
23 (e (ly-get-mus-property m 'element)) )
24 (map (lambda (y) (add-script y x)) es)
29 #(define (add-staccato m)
30 (add-script m "staccato"))
34 a b \apply #add-staccato { c c }
35 a b \apply #add-staccato { c c }