Jump to content

Printing the bar number for the first measure: Difference between revisions

From LilyPond wiki
m New category
mNo edit summary
 
Line 1: Line 1:
By default, the first bar number in a score is suppressed if it is less than or equal to 1. By setting <code>barNumberVisibility</code> to <code>all-bar-numbers-visible</code>, any bar number can be printed for the first measure and all subsequent measures.
By default, the first bar number in a score is suppressed if it is less than or equal to&nbsp;1. This can be changed by setting the <code>barNumberVisibility</code> context property to value <code>all-bar-numbers-visible</code>.


<lilypond version="2.24">
<lilypond version="2.24">
\layout {
\paper {
   indent = 0
   line-width = 50\mm
  ragged-right = ##t
}
}



Latest revision as of 08:44, 8 December 2025

By default, the first bar number in a score is suppressed if it is less than or equal to 1. This can be changed by setting the barNumberVisibility context property to value all-bar-numbers-visible.

\version "2.24"

\paper {
  line-width = 50\mm
}

\relative c' {
  \set Score.barNumberVisibility = #all-bar-numbers-visible
  c1 | d | e | f \break
  g1 | e | d | c
}