In the example below, Lilypond doesn't count the initial partial bar when numbering the bars, but the partial bars at the end of the first repeat and beginning of the second repeat each get their own bar number. Commercial scores I have with this repeat structure treat these two bars as though they are one for the purposes of numbering the succeeding bars. To get the same numbering in Lilypond I have to explicitly set the bar numbering at the beginning of the second repeat.

I had a look in Gould but couldn't see any recommendation for how the bars should be numbered in this situation.

\version "2.15.43"

\relative c'' {
    \override Score.BarNumber #'break-visibility = #'#(#t #t #f)
    \repeat volta 2 {
        \partial 4 c4 |
        c c c c |
        \set Score.measureLength = #(ly:make-moment 3 4) c c c |
    }
    \repeat volta 2 {
        \set Score.measureLength = #(ly:make-moment 1 4) c |
%       \set Score.currentBarNumber = #3
        \set Score.measureLength = #(ly:make-moment 4 4) c c c c |
        c c c c |
        \set Score.measureLength = #(ly:make-moment 3 4) c c c |
    }
}

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to