Using alternative flag styles: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Alternative styles of flag on eighth and shorter notes can be displayed by overriding the <code>stencil</code> property of <code>Flag</code>. Valid values are <code>modern-straight-flag</code>, <code>old-straight-flag</code> and <code>flat-flag</code>. | Alternative styles of flag on eighth and shorter notes can be displayed by overriding the <code>stencil</code> property of <code>Flag</code>. Valid values are <code>modern-straight-flag</code>, <code>old-straight-flag</code> and <code>flat-flag</code>. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
testnotes = { | testnotes = { | ||
\autoBeamOff | \autoBeamOff | ||
| Line 25: | Line 25: | ||
} | } | ||
\layout { | \layout { | ||
\context { | \context { | ||
\Score | \Score | ||
| Line 34: | Line 33: | ||
</lilypond> | </lilypond> | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | |||
[[Category:Snippet]] | |||
Latest revision as of 10:02, 8 December 2025
Alternative styles of flag on eighth and shorter notes can be displayed by overriding the stencil property of Flag. Valid values are modern-straight-flag, old-straight-flag and flat-flag.
\version "2.24"
testnotes = {
\autoBeamOff
c8 d16 c32 d64 \acciaccatura { c8 } d64 r4
}
\score {
\relative c' {
\time 2/4
\testnotes
\override Flag.stencil = #modern-straight-flag
\testnotes
\override Flag.stencil = #old-straight-flag
\testnotes
\override Flag.stencil = #flat-flag
\testnotes
\revert Flag.stencil
\testnotes
}
\layout {
\context {
\Score
\override NonMusicalPaperColumn.line-break-permission = ##f
}
}
}