James E. Bailey wrote:

Am 30.03.2009 um 17:16 schrieb Pekka Siponen:


I find the behavior with lyrics and alternative repeats somewhat illogical..

For me the logical thing would be something like:
%---------------
\version "2.12.2"
\score {
  \new GrandStaff {
    \new Staff {
<<
      \new Voice = "alku" \relative c' {
        \repeat volta 2 { c d e f g a b c }
        \alternative {
            { d e f g }
            { d c b a }
        }
       }
      \new Lyrics \lyricsto "alku" {
        cx dx ex fx gx ax bx cx dI eI fI gI
        cy dy ey fy gy ay by cy
        dII cII bII aII }
} }
}
% Places where lyrics should be:
% I = first ending
% II = second ending
% x = first stanza
% y = second stanza
%---------------

Also, if you don't want to have different stanzas, only repeat the same lyrics,
you could add "\repeat volta" and \alternative to the lyrics.

Perhaps in the future..?

You can add \repeat and \alternative to the lyrics. Different stanzas are entered separately. So, your example would be easily notated in lilypond so:
\version "2.12.2"

\score {
        \new Staff <<
                \new Voice = "alku" \relative c' {
                        \repeat volta 2 { c d e f g a b c }
                        \alternative {
                                { d e f g }
                                { d c b a }
                        }
                }
                \new Lyrics \lyricsto "alku" {
                        \set stanza = "First Stanza "
                        \repeat volta 2 { cx dx ex fx gx ax bx cx }
                        \alternative {
                                { dI eI fI gI }
                                { dII cII bII aII }
                        }
                }
                \new Lyrics \lyricsto "alku" {
                        \set stanza = "Second Stanza "
                        cy dy ey fy gy ay by cy
                }
        >>
}

I still find a problem with this approach; the second stanza is not connected to second ending.. If I wanted to put a longer word accross the barline, it wouldn't work..? Also this approach seems a little like something to trick LilyPond with to make it look ok. It would be nice if the syntax was more focused on the content and LilyPond would worry about the output with good default settings. At least in simple examples like this one.

So.. what if the "words" were longer like this?

     \new Lyrics \lyricsto "alku" {
       cx dx ex fx gx ax bx --  cx -- dI -- eI fI gI
       cy dy ey fy gy ay by -- cy -- dII -- cII bII aII
     }

-Pekka


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to