]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/redefining-grace-note-global-defaults.ly
b6575a4714cbc91d0132c4da99c18dbb32fcab21
[lilypond.git] / Documentation / snippets / new / redefining-grace-note-global-defaults.ly
1 \version "2.16.0"
2
3 \header {
4   lsrtags = "rhythms"
5
6   texidoc = "
7 The global defaults for grace notes are stored in the identifiers
8 @code{startGraceMusic}, @code{stopGraceMusic},
9 @code{startAcciaccaturaMusic}, @code{stopAcciaccaturaMusic},
10 @code{startAppoggiaturaMusic} and @code{stopAppoggiaturaMusic}, which
11 are defined in the file @code{ly/grace-init.ly}.  By redefining them
12 other effects may be obtained.
13
14 "
15   doctitle = "Redefining grace note global defaults"
16 }
17
18 startAcciaccaturaMusic = {
19   <>(
20   \override Flag #'stroke-style = #"grace"
21   \slurDashed
22 }
23
24 stopAcciaccaturaMusic = {
25   \revert Flag #'stroke-style
26   \slurSolid
27   <>)
28 }
29
30 \relative c'' {
31   \acciaccatura d8 c1
32 }
33