]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/tweaking-grace-layout-within-music.ly
Imported Upstream version 2.19.45
[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.di.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.18.0"
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 \relative c'' {
24   \new Staff {
25     $(remove-grace-property 'Voice 'Stem 'direction)
26     $(add-grace-property 'Voice 'NoteHead 'style 'cross)
27     \new Voice {
28        \acciaccatura { f16 } g4
29        \grace { d16 e } f4
30        \appoggiatura { f,32 g a } e2
31     }
32   }
33 }