Jump to content

Displaying bar numbers on all measures: Difference between revisions

From LilyPond wiki
No edit summary
m New category
 
Line 19: Line 19:
[[Category:Editorial annotations]]
[[Category:Editorial annotations]]
[[Category:Automatic notation]]
[[Category:Automatic notation]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:15, 21 November 2025

By default, bar numbers are printed only in the first measure.

This setting can be overridden so that bar numbers appear on every measure.

\version "2.24"

\relative c'{
  c1 c c
  \override Score.BarNumber.break-visibility = #end-of-line-invisible
  \break
  c c c
}

\layout { raggedright = ##t }
\paper { tagline = ##f }