Tweaking grace layout within music: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
No edit summary |
||
| Line 19: | Line 19: | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]][[Category:Snippet]] | ||
Revision as of 23:01, 21 November 2025
The layout of grace expressions can be changed throughout the music using the functions add-grace-property and remove-grace-property.
The following example undefines the Stem direction for this grace, so that stems do not always point up, and changes the default note heads to crosses.
\version "2.24"
\relative c'' {
\new Staff {
$(remove-grace-property 'Voice 'Stem 'direction)
$(add-grace-property 'Voice 'NoteHead 'style 'cross)
\new Voice {
\acciaccatura { f16 } g4
\grace { d16 e } f4
\appoggiatura { f,32 g a } e2
}
}
}