2 texidoc= "Using make-music, you can add
3 various stuff to notes. Here is an example
4 how to add an extra fingering.
6 In general, first do a display of the music you want ot
7 create, then write a function that will build the structure for you.";
10 #(define (make-script x)
11 (let* ( (m (ly-make-music "Text_script_req"))
14 (ly-set-mus-property m 'text-type 'finger)
15 (ly-set-mus-property m 'text x)
19 #(define (add-script m x)
20 (if (equal? (ly-music-name m) "Request_chord")
21 (ly-set-mus-property m 'elements
22 (cons (make-script x) (ly-get-mus-property m 'elements)))
24 (let* ( (es (ly-get-mus-property m 'elements))
25 (e (ly-get-mus-property m 'element)) )
26 (map (lambda (y) (add-script y x)) es)
34 \score { \apply #(lambda (x) (add-script x "6") (display x) x ) \notes { c4-3 } }