lilypond-user
[Top][All Lists]
Advanced

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

Re: Need to suppress bar number checking in midi block


From: Thomas Morley
Subject: Re: Need to suppress bar number checking in midi block
Date: Mon, 26 Jan 2015 00:20:45 +0100

2015-01-25 17:52 GMT+01:00 Michael Hendry <address@hidden>:
> Does anyone have a solution for this issue?
>
> Like Michael Ellis, I like to use both "|" and \barNumberCheck to pick up
> rhythm errors and missing or duplicated bar that I've made, and I use MIDI
> output to pick up wrong notes in my transcriptions.
>
> I can usually pick out the erroneous \barNumberCheck warnings because the
> bar number reported usually exceeds the number of bars in the piece, but I
> prefer to see no error messages.
>
> Temporarily disabling MIDI output also works, but I'd prefer to leave
> working code alone, and not be constantly commenting it out and then back in
> again.



Maybe:

mymusic = {
  \time 4/4
  \repeat volta 2 {
    g'1
    \barNumberCheck #2
  }
  c'1
  \displayMusic
  \barNumberCheck #3
}

\book {
  \score {
     \mymusic
     \layout {}
  }
  \score {
     { \unfoldRepeats \set Score.currentBarNumber = #1 \mymusic }
     \midi {}
  }
}

No idea why it's needed or why it works at all.

Cheers,
  Harm



reply via email to

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