Tweaking grace layout within music: Difference between revisions
Appearance
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
The | The appearance of grace expressions can be changed by using the functions <code>add-grace-property</code> and <code>remove-grace-property</code>. | ||
The following example undefines the <code>Stem</code> | The following example undefines the <code>direction</code> property of <code>Stem</code> grobs for this grace so that stems do not always point up, and changes the default note heads to crosses. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
Latest revision as of 19:30, 30 November 2025
The appearance of grace expressions can be changed by using the functions add-grace-property and remove-grace-property.
The following example undefines the direction property of Stem grobs 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
}
}
}