On 11/26/19, 9:24 AM, "Peter Toye" <lilyp...@ptoye.com> wrote:
The following MWE gives bar number check errors. If you comment out the midi block they go away. Bizarre, but a definite bug IMHO. I don't think it's a bug at all. Midi files require ascending bar numbers, IIUC. You can't have two measure #2 in a midi file. So you can label the bar with whatever bar number you want. But when you run the midi, you'll just get incremented bar numbers. Hence, the midi sees the fourth bar as bar 4, regardless of whether it is in an alternative or not. If you put \barNumberCheck on your bars 1 and 2 and then unfold the repeats in your midi, you'll see errors on each bar number check. \version "2.19.52" \language "english" music = { \new Staff { \repeat volta 2 { \barNumberCheck 1 c''1 \barNumberCheck 2 1 } \alternative { { \barNumberCheck #3 d''1 } { \barNumberCheck #3 e''1 } } { \barNumberCheck #4 f''1 | } } } \score { \music \layout { \set Score.alternativeNumberingStyle = #'numbers \override Score.BarNumber.break-visibility = ##(#t #t #t) } } %%%%%%%%% % comment out the midi block to remove errors \score { \unfoldRepeats \music \midi { } } _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond