[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Midi block gives errors with bar number checks

From: Carl Sorensen
Subject: Re: Midi block gives errors with bar number checks
Date: Tue, 26 Nov 2019 17:21:07 +0000
User-agent: Microsoft-MacOutlook/

´╗┐On 11/26/19, 9:24 AM, "Peter Toye" <address@hidden> 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 {
  \layout {
    \set Score.alternativeNumberingStyle = #'numbers
    \override Score.BarNumber.break-visibility = ##(#t #t #t)

% comment out the midi block to remove errors
\score {
  \midi { }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]