bug-lilypond
[Top][All Lists]
Advanced

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

Re: cannot find Voice


From: Erik Sandberg
Subject: Re: cannot find Voice
Date: Mon, 29 Mar 2004 02:34:45 +0200
User-agent: KMail/1.5.4

On Sunday 28 March 2004 20.52, Han-Wen Nienhuys wrote:
> address@hidden writes:
> > Hi,
> >
> > The following code produces five warnings
> > warning: cannot find Voice: A
> >
> > but the paper output is perfect.
> >
> > \version "2.1.34"
> > \score {<<
> >   \new Staff \notes { a4 a a a \context Voice=A {b b b b }}
> >
> >   \lyricsto A \new Lyrics \lyrics { c c c c }
> >
> > >>}
> >
> > The following code gives the same output without warnings. IMHO, both
> > ways should be allowed:
>
> If the first version would not give a warning, how would you catch
> typing errors in the Voice names?

That warning could remain, just that it would occur only when no voice context 
is found. I.e., since there actually _is_ a voice A somewhere, then you could 
assume that this \lyricsto is meant to add lyrics to that place. If there is 
a typing error, then no voice will be found, so this warning would occur.

But I might be missing something. Do you have an example of a mistake that 
wouldn't be caught?

Another thing about it: The warning occurs at _every syllable_. That makes 
quite a large set of warning for a single mistake. Would it be possible to 
reduce it to O(1) warnings?

And yet another btw: Consider the following
<<
 \new Staff=X \context Voice=A {..} 
 \new Staff=Y \context Voice=A {...} 
 \addlyrics A {...}
>> 
Reading docu I can't judge what this _should_ do, but by testing, I can see 
that \addlyrics apparently couples its lyrics to the A voice of staff X, 
without complaining. I personally have no strong opinion either way here, but 
it can be argued that it's unclear which of the A voices that \addlyrics A 
refers to, and this likely means that a mistake has been done. 

So, maybe there should be a warning if \addlyrics X can find two different 
staves containing voices named X?

Erik





reply via email to

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