Printing bar numbers for broken measures: Difference between revisions
Appearance
Import snippet from LSR |
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 |
||
| Line 1: | Line 1: | ||
By default a <code>BarNumber</code> of a broken measure is not repeated at the beginning of the new line. Use <code>first-bar-number-invisible-save-broken-bars</code> for <code>barNumberVisibility</code> to get a parenthesized <code>BarNumber</code> there. | By default a <code>BarNumber</code> of a broken measure is not repeated at the beginning of the new line. Use <code>first-bar-number-invisible-save-broken-bars</code> for <code>barNumberVisibility</code> to get a parenthesized <code>BarNumber</code> there. | ||
<lilypond version="2.24 | <lilypond version="2.24" full> | ||
\layout { | \layout { | ||
\context { | \context { | ||
Revision as of 18:52, 16 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 }