Bar number inconsistency with repeats and partial bars?
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
Re: Bar number inconsistency with repeats and partial bars?
On 14 August 2012 13:34, Nick Payne nick.pa...@internode.on.net wrote: 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. Hi Nick, If you do not change the measure length at the end of the first volta and at the beginning of the second one you get the correct output, AFAICS. Lily code \version 2.15.43 \relative c'' { \override Score.BarNumber #'break-visibility = #'#(#t #t #f) \repeat volta 2 { \partial 4 c4 | c c c c | c c c } \repeat volta 2 { c | c c c c | c c c c | \set Score.measureLength = #(ly:make-moment 3 4) c c c | } } End of lily code Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bar number inconsistency with repeats and partial bars?
On 15/08/12 01:36, Xavier Scheuer wrote: On 14 August 2012 13:34, Nick Payne nick.pa...@internode.on.net wrote: 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. Hi Nick, If you do not change the measure length at the end of the first volta and at the beginning of the second one you get the correct output, AFAICS. Thanks. That definitely seems the best solution. I was fixated on putting bar checks everywhere and didn't think of that. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user