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.
14 doctitle = "Printing bar numbers inside boxes or circles"
18 % Prevent bar numbers at the end of a line and permit them elsewhere
19 \override Score.BarNumber #'break-visibility = #end-of-line-invisible
20 \set Score.barNumberVisibility = #(every-nth-bar-number-visible 4)
22 % Increase the size of the bar number by 2
23 \override Score.BarNumber #'font-size = #2
25 % Draw a box round the following bar number(s)
26 \override Score.BarNumber #'stencil
27 = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print)
28 \repeat unfold 5 { c1 }
30 % Draw a circle round the following bar number(s)
31 \override Score.BarNumber #'stencil
32 = #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
33 \repeat unfold 4 { c1 } \bar "|."