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