lilypond-user
[Top][All Lists]
Advanced

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

Re: Should I stop using barchecks in lyrics?


From: Colin Tennyson
Subject: Re: Should I stop using barchecks in lyrics?
Date: Tue, 31 Dec 2013 09:49:01 -0800 (PST)

Janek Warchoł wrote
> Colin, don't use explicit lyrics timing.  Alignment of
> unassociated lyrics (i.e. lyrics that don't use \addlyrics/\lyricsto)
> is broken, [...]
> David, i apologize for butting in like that, but i believe that we
> shouldn't advocate using features that are broken.

Janek, I had read about explicit timing in the documentation, but I never
considered using it.

Minimal case:

This triggers an erroneous barcheck warning:
<<
  \new Staff 
  <<
    \new Voice = "cantus" \relative c''        { c4 c4 c4 c4~ | c4 c4 c4 c4
| c4 c4 c4 c4 | }
    \lyricsto "cantus" \new Lyrics \lyricmode { do do do do  |    do do do |
do do do do | }
  >>
>>


Removing the pipe symbol that is located at the position that corresponds to
the tie that straddles the bar line:
<<
  \new Staff 
  <<
    \new Voice = "cantus" \relative c''        { c4 c4 c4 c4~ | c4 c4 c4 c4
| c4 c4 c4 c4 | }
    \lyricsto "cantus" \new Lyrics \lyricmode { do do do do       do do do |
do do do do | }
  >>
>>

My intended workaround: a pipe symbol, visible to the human, ignored by the
machine
<<
  \new Staff 
  <<
    \new Voice = "cantus" \relative c''        { c4 c4 c4 c4~ | c4 c4 c4 c4
| c4 c4 c4 c4 | }
    \lyricsto "cantus" \new Lyrics \lyricmode { do do do do %{|%} do do do |
do do do do | }
  >>
>>


I can't resist speculating what is happening.

Given:
The bar check algoritm for the staff checks whether the sum of the lengths
of the notes in each bar equals the duration of the bar.

Supposition:
- LilyPond first places the syllables
- Given their positions Lilypond figures out the duration of each syllable
- Lilypond checks whether the sum of the syllable durations matches the
duration of the bar

When there is a tie in the _Staff_ , the sum of the durations of the
syllables in the _next_ bar comes up short.

Fortunately the problem can be worked around by omitting the pipe symbol in
the lyrics at the spot where the tie _in the staff_ straddles the bar line.

(I'm emphasizing the bit about ties _in the staff_ because David Kastrup
somehow ended up writing about ties in the lyrics, which are handled
perfectly by LilyPond.)






--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Should-I-stop-using-barchecks-in-lyrics-tp156790p156816.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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