Alternative bar numbering: Difference between revisions
Appearance
mNo edit summary |
m Improve display for PDF output in the documentation |
||
| Line 12: | Line 12: | ||
} | } | ||
{ | { | ||
\textMark \markup \large "default" | |||
\music | \music | ||
} | } | ||
{ | { | ||
\textMark \markup \large \typewriter "numbers" | |||
\set Score.alternativeNumberingStyle = #'numbers | \set Score.alternativeNumberingStyle = #'numbers | ||
\music | \music | ||
} | } | ||
{ | { | ||
\textMark \markup \large \typewriter "numbers-with-letters" | |||
\set Score.alternativeNumberingStyle = #'numbers-with-letters | \set Score.alternativeNumberingStyle = #'numbers-with-letters | ||
\music | \music | ||
} | |||
\layout { | |||
\context { | |||
\Score | |||
\override TextMark.Y-offset = #5 | |||
} | |||
} | } | ||
</lilypond> | </lilypond> | ||
Latest revision as of 06:00, 11 January 2026
Setting the alternativeNumberingStyle context property, two additional methods are available for enumerating bar numbers in repeats.
\version "2.24"
music = \relative c' {
\repeat volta 3 {
c4 d e f |
\alternative {
\volta 1 { c4 d e f | c2 d \break }
\volta 2 { f4 g a b | f4 g a b | f2 a | \break }
\volta 3 { c4 d e f | c2 d } } }
c1 \bar "|."
}
{
\textMark \markup \large "default"
\music
}
{
\textMark \markup \large \typewriter "numbers"
\set Score.alternativeNumberingStyle = #'numbers
\music
}
{
\textMark \markup \large \typewriter "numbers-with-letters"
\set Score.alternativeNumberingStyle = #'numbers-with-letters
\music
}
\layout {
\context {
\Score
\override TextMark.Y-offset = #5
}
}