Re: Need to suppress bar number checking in midi block

2015-01-26 Thread Michael Hendry

 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. 

Excellent!

Because my midi() output was of a piano part, I had to reset the 
currentBarNumber to #1 once for the right hand and once for the left.

It looks as though \unfoldRepeats “knows” that it’s going through the same bars 
more than once and copes with this, but can’t deal with currentBarNumber being 
wrong from the start.

What’s odd is that the creation of several PDFs that precedes the midi() 
section doesn’t fall over with the second \book is created - presumably with 
currentBarNumber set to the end of the piece.

Many thanks,

Michael

 
 Cheers, 
   Harm 
 
 ___ 
 lilypond-user mailing list 
 [hidden email] x-msg://52/user/SendEmail.jtp?type=nodenode=170996i=1 
 https://lists.gnu.org/mailman/listinfo/lilypond-user 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 If you reply to this email, your message will be added to the discussion 
 below:
 http://lilypond.1069038.n5.nabble.com/Need-to-suppress-bar-number-checking-in-midi-block-tp16654p170996.html
  
 http://lilypond.1069038.n5.nabble.com/Need-to-suppress-bar-number-checking-in-midi-block-tp16654p170996.html
 To unsubscribe from Need to suppress bar number checking in midi block, click 
 here 
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=16654code=aGVuZHJ5Lm1pY2hhZWxAZ21haWwuY29tfDE2NjU0fC0yODI4OTE5NDQ=.
 NAML 
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Need-to-suppress-bar-number-checking-in-midi-block-tp16654p171019.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Need to suppress bar number checking in midi block

2015-01-25 Thread Michael Hendry
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.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Need-to-suppress-bar-number-checking-in-midi-block-tp16654p170978.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Need to suppress bar number checking in midi block

2015-01-25 Thread Thomas Morley
2015-01-25 17:52 GMT+01:00 Michael Hendry hendry.mich...@gmail.com:
 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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Need to suppress bar number checking in midi block

2015-01-25 Thread Thomas Morley
2015-01-26 0:20 GMT+01:00 Thomas Morley thomasmorle...@gmail.com:
 2015-01-25 17:52 GMT+01:00 Michael Hendry hendry.mich...@gmail.com:
 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
^^^
delete this line ofcourse
   \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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Need to suppress bar number checking in midi block

2012-03-25 Thread Michael Ellis
On Sat, Mar 24, 2012 at 10:51 PM, Nick Payne
nick.pa...@internode.on.net wrote:
 On 25/03/12 10:31, Michael Ellis wrote:

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


 Use the | character instead for barchecks:

Ah, the problem with constructing minimal examples! In real
transcriptions, I use |  after each measure and  \barNumberCheck
after groups of 5 to 10 measures.   Barchecks help me catch rhythm
errors within a measure whereas barNumberChecks catch omitted or extra
measures.  I find them both extremely useful and would hate to give up
either. Hence the question.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Need to suppress bar number checking in midi block

2012-03-24 Thread Michael Ellis
The NR advises using \unfoldRepeats to produce a midi file that plays
all the repeats.  I use a lot of \barNumberChecks in my work because
it saves time spotting errors.  In pieces with repeats, this produces
many Barcheck failed warnings.  Is there a way to suppress bar
checking within the midi score block?

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

\book {
  \score {
     \mymusic
     \layout {}
  }
  \score {
     % Causes Barcheck failed warnings
     \unfoldRepeats \mymusic
     \midi {}
  }
}

\version 2.14.1

Thanks,
Mike


unfold.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Need to suppress bar number checking in midi block

2012-03-24 Thread Nick Payne

On 25/03/12 10:31, Michael Ellis wrote:

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


Use the | character instead for barchecks:

mymusic = {
   \time 4/4
   \repeat volta 2 {
g'1 |
   }
   c'1 |
}



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user