int(0) array(11) { [0]=> string(44) "Running as unit: run-p323665-i323666.service" [1]=> string(60) "Changing working directory to: `/tmp/lilywiki-tmp7dd8148cef'" [2]=> string(48) "Processing `/tmp/lilywiki-tmp7dd8148cef/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 at regular intervals - LilyPond wiki Jump to content

Printing bar numbers at regular intervals

From LilyPond wiki

By setting the barNumberVisibility property, bar numbers can be printed at regular intervals. Here the bar numbers are printed every two measures except at the end of the line.

\version "2.24.0"

\relative c' {
  \override Score.BarNumber.break-visibility = #end-of-line-invisible
  \set Score.currentBarNumber = 11
  % Print a bar number every second measure
  \set Score.barNumberVisibility = #(every-nth-bar-number-visible 2)
  c1 | c | c | c | c
  \break
  c1 | c | c | c | c
}

\paper { tagline = ##f }