int(0) array(11) { [0]=> string(44) "Running as unit: run-p323592-i323593.service" [1]=> string(60) "Changing working directory to: `/tmp/lilywiki-tmp56d8a68a7f'" [2]=> string(48) "Processing `/tmp/lilywiki-tmp56d8a68a7f/file.ly'" [3]=> string(10) "Parsing..." [4]=> string(24) "Interpreting music...[8]" [5]=> string(34) "Preprocessing graphical objects..." [6]=> string(36) "Finding the ideal number of pages..." [7]=> string(26) "Fitting music on 1 page..." [8]=> string(18) "Drawing systems..." [9]=> string(30) "Layout output to `file.svg'..." [10]=> string(43) "Success: compilation successfully completed" } Printing bar numbers for broken measures - LilyPond wiki Jump to content

Printing bar numbers for broken measures

From LilyPond wiki

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.0"

\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 }