1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
13 When left aligning bar numbers, overlapping problems may occur with
14 Staves brackets. The snippet solves this by keeping right aligned the
15 first bar number following line breaks.
18 doctitle = "Consistently left aligned bar numbers"
21 consistentlyLeftAlignedBarNumbers = {
22 \override Score.BarNumber.break-visibility = #end-of-line-invisible
23 \override Score.BarNumber.self-alignment-X =
25 (let ((break-dir (ly:item-break-dir grob)))
26 (if (= break-dir RIGHT) RIGHT LEFT)))
32 \set Score.barNumberVisibility = #(every-nth-bar-number-visible 3)
34 \consistentlyLeftAlignedBarNumbers
36 \set Score.currentBarNumber = #112
37 \repeat unfold 8 { R1 }
39 \repeat unfold 9 { R1 }
41 \repeat unfold 7 { R1 }
46 \repeat unfold 24 { R1 }