lilypond-user
[Top][All Lists]
Advanced

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

Re: Setting lytics to alternative endings


From: Jean Abou Samra
Subject: Re: Setting lytics to alternative endings
Date: Thu, 15 Dec 2022 16:27:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

Le 15/12/2022 à 14:57, Kieren MacMillan a écrit :
Hi Jogchum,

I suppose it is very simple, but I can't find it in documentation, or here on 
the list.
How can one set different lyrics to alternative ending?
It is simple — so simple, you probably didn’t think it would work:

\version "2.23.14"

theMusic = {
   \repeat volta 2 {
     g'4 4 4 4
     \alternative { { f'1 } { c''1 } }
   }
}

theLyrics = \lyricmode {
   The an -- swer is quite plain.
}

<<
   \new Staff \new Voice \theMusic
   \addlyrics \theLyrics
>>




As said in another thread [1], I would recommend using the \repeat
construct in the lyrics too:


\version "2.23.82"

theMusic = {
  \repeat volta 2 {
    g'4 4 4 4
    \alternative { { f'1 } { c''1 } }
  }
}

theLyrics = \lyricmode {
  \repeat volta 2 {
    The an -- swer is
    \alternative {
      { quite }
      { plain. }
    }
  }
}

<<
  \new Staff \new Voice \theMusic
  \addlyrics \theLyrics
>>



Best,
Jean


[1] https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00206.html

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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