Redefining grace note global defaults: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The global defaults for grace notes are stored in the following identifiers. | The global defaults for grace notes are stored in the following identifiers. | ||
startGraceMusic | |||
stopGraceMusic | stopGraceMusic | ||
startAcciaccaturaMusic | startAcciaccaturaMusic | ||
stopAcciaccaturaMusic | stopAcciaccaturaMusic | ||
startAppoggiaturaMusic | startAppoggiaturaMusic | ||
stopAppoggiaturaMusic | stopAppoggiaturaMusic | ||
They are defined in file <code>ly/grace-init.ly</code>. By redefining them other effects may be obtained. | They are defined in file <code>ly/grace-init.ly</code>. By redefining them other effects may be obtained. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
startAcciaccaturaMusic = { | startAcciaccaturaMusic = { | ||
<>( | <>( | ||
| Line 29: | Line 30: | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 09:14, 8 December 2025
The global defaults for grace notes are stored in the following identifiers.
startGraceMusic stopGraceMusic startAcciaccaturaMusic stopAcciaccaturaMusic startAppoggiaturaMusic stopAppoggiaturaMusic
They are defined in file ly/grace-init.ly. By redefining them other effects may be obtained.
\version "2.24"
startAcciaccaturaMusic = {
<>(
\override Flag.stroke-style = "grace"
\slurDashed
}
stopAcciaccaturaMusic = {
\revert Flag.stroke-style
\slurSolid
<>)
}
\relative c'' {
\acciaccatura d8 c1
}