]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/printing-bar-numbers-at-regular-intervals.ly
LSR: Update.
[lilypond.git] / input / lsr / printing-bar-numbers-at-regular-intervals.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "rhythms"
7
8   texidoc = "
9 Bar numbers can be printed at regular intervals by setting the property
10 @code{barNumberVisibility}. Here the bar numbers are printed every two
11 measures except at the end of the line.
12
13 "
14   doctitle = "Printing bar numbers at regular intervals"
15 } % begin verbatim
16
17 \relative c' {
18   \override Score.BarNumber #'break-visibility = #'#(#f #t #t)
19   \set Score.currentBarNumber = #11
20   % Permit first bar number to be printed
21   \bar ""
22   % Print a bar number every second measure
23   \set Score.barNumberVisibility = #(every-nth-bar-number-visible 2)
24   c1 | c | c | c | c
25   \break
26   c1 | c | c | c | c
27 }
28