bug-lilypond
[Top][All Lists]
Advanced

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

Re: Possible bug on \addlyrics in Lilypond 2.13.54


From: Francisco Vila
Subject: Re: Possible bug on \addlyrics in Lilypond 2.13.54
Date: Sun, 20 Mar 2011 08:26:00 +0100

2011/3/19 Wim van Dommelen <address@hidden>:
>> I'm not top posting.
>
> I found some weird behaviour in music disappearing when adding a lyric.
>
> This is the smallest I could get the problem reduced to:
>
> \version "2.13.54"
>
> \score {
>        \new Staff {
>                \relative g' { g1 }
> % as soon as the next line is commented in the piece truncates,
> % when commented out we see more notes appearing
>                \addlyrics { milk milk }
>                \relative g' { c2 g }
>                \addlyrics { su- gar su- gar }
>        }
> }

What follows is my opinion only.
It looks as if the voice context for the second \addlyrics is lost
after the first \addlyrics. This does not surprise me.
The behaviour is not more weird than the code itself.  \addlirycs is
not intented do be used this way, that's why you obtain an unexpected
result.

  { music } \addlyrics { lyrics }

is a short for

<< \newStaff { \new Voice=name {music} } \new Lyrics \lyricsto name
\lyricmode { lyrics } >>

It is a simultaneous construct, but you don't use <<>> and therefore
is not clear what you try to achieve by just putting more music after
an addlyrics.

This is what you can do depending on what you want:
Do you want your music and lyrics to be simultaneous?  use <<\new
Staff {music} \addlyrics {lyrics}\new Staff {music} \addlyrics
{lyrics}>> .
Do you want your music to be sequential and your lyrics to be
simultaneous? first concatenate music in a single voice, then use
addlyrics twice.
Do you want it all to be sequential? first concatenate music and
lyrics, then use addlyrics once.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com



reply via email to

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