]> git.donarmstrong.com Git - lilypond.git/blob - input/new/tweaking-grace-layout-within-music.ly
Docs: compile fix.
[lilypond.git] / input / new / tweaking-grace-layout-within-music.ly
1 \version "2.12.0"
2
3 \header {
4   lsrtags = "rhythms"
5   texidoc = "
6 The layout of grace expressions can be changed throughout the
7 music using the functions @code{add-grace-property} and
8 @code{remove-grace-property}.  The following example undefines
9 the @code{Stem} direction for this grace, so that stems do not
10 always point up, and changes the default note heads to crosses.
11 "
12   doctitle = "Tweaking grace layout within music"
13 }
14
15 \relative c'' {
16   \new Staff {
17     #(remove-grace-property 'Voice 'Stem 'direction)
18     #(add-grace-property 'Voice 'NoteHead 'style 'cross)
19     \new Voice {
20        \acciaccatura { f16 } g4
21        \grace { d16[ e] } f4
22        \appoggiatura { f,32[ g a] } e2
23     }
24   }
25 }