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.
6 lsrtags = "rhythms, tweaks-and-overrides"
9 Bar numbers can also be printed inside boxes or circles.
12 doctitle = "Printing bar numbers inside boxes or circles"
16 % Prevent bar numbers at the end of a line and permit them elsewhere
17 \override Score.BarNumber #'break-visibility = #end-of-line-invisible
18 \set Score.barNumberVisibility = #(every-nth-bar-number-visible 4)
20 % Increase the size of the bar number by 2
21 \override Score.BarNumber #'font-size = #2
23 % Draw a box round the following bar number(s)
24 \override Score.BarNumber #'stencil
25 = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print)
26 \repeat unfold 5 { c1 }
28 % Draw a circle round the following bar number(s)
29 \override Score.BarNumber #'stencil
30 = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
31 \repeat unfold 4 { c1 } \bar "|."