1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
6 % This file is in the public domain.
7 %% Note: this file works from version 2.16.0
11 lsrtags = "scheme-language"
14 You can add additional elements to notes using @code{map-some-music}. In this
15 example, an extra script is attached to a note.
17 In general, first do a @code{\\displayMusic} of the music you want to
18 create, then write a function that will work on the appropriate parts
21 doctitle = "Adding extra fingering with scheme"
26 #(define-music-function (parser location script music)
30 (define (append-script-at! prop)
31 (set! (ly:music-property mus prop)
32 (append (ly:music-property mus prop)
33 (list (ly:music-deep-copy script))))
35 (case (ly:music-property mus 'name)
37 (append-script-at! 'elements))
39 (append-script-at! 'articulations))
45 \addScript _6 { c'4-3 <c' e' g'> }