Dear Carl, I take this point. I don't know MIDI at all - I thought it was more to do with sound generation than score output! Why should an instrumentalist be expected to know what bar number they're playing (until the conductor says "back to bar 52")? I've just had a quick look at the MIDI spec, and it doesn't include bar numbers AFAICS. The timing is done with an hour/minute/second/frame format. Bar numbers would be far too coarse. It's still 100% illogical for the sound output to need the same bar numbering as the performer.
Best regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com ------------------------- Tuesday, November 26, 2019, 5:21:07 PM, Carl Sorensen wrote: > 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