]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/tweaking-grace-layout-within-music.ly
LSR: Update.
[lilypond.git] / input / lsr / tweaking-grace-layout-within-music.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "rhythms, tweaks-and-overrides"
7
8   texidoc = "
9 The layout of grace expressions can be changed throughout the music
10 using the functions @code{add-grace-property} and
11 @code{remove-grace-property}. The following example undefines the
12 @code{Stem} direction for this grace, so that stems do not always point
13 up, and changes the default note heads to crosses. 
14
15 "
16   doctitle = "Tweaking grace layout within music"
17 } % begin verbatim
18
19 \relative c'' {
20   \new Staff {
21     #(remove-grace-property 'Voice 'Stem 'direction)
22     #(add-grace-property 'Voice 'NoteHead 'style 'cross)
23     \new Voice {
24        \acciaccatura { f16 } g4
25        \grace { d16[ e] } f4
26        \appoggiatura { f,32[ g a] } e2
27     }
28   }
29 }