Printing bar numbers for broken measures: 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 25: | Line 25: | ||
[[Category:Rhythms]] | [[Category:Rhythms]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]][[Category:Snippet]] | ||
Revision as of 22:58, 21 November 2025
By default a BarNumber of a broken measure is not repeated at the beginning of the new line. Use first-bar-number-invisible-save-broken-bars for barNumberVisibility to get a parenthesized BarNumber there.
\version "2.24"
\layout {
\context {
\Score
barNumberVisibility = #first-bar-number-invisible-save-broken-bars
\override BarNumber.break-visibility = ##(#f #t #t)
}
}
\relative c' {
c1 | d | e | f2 \bar "" \break
fis | g1 | e2 \bar "" \break
<>^"reenabled default"
% back to default -
% \unset Score.barNumberVisibility would do so as well
\set Score.barNumberVisibility =
#first-bar-number-invisible-and-no-parenthesized-bar-numbers
es | d1 | c
}
\paper { tagline = ##f }