lilypond-user
[Top][All Lists]
Advanced

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

Re: Why do lyric extenders require an associated voice?


From: Torsten Hämmerle
Subject: Re: Why do lyric extenders require an associated voice?
Date: Fri, 16 Feb 2018 02:49:25 -0700 (MST)

Hi,

As soon as associatedVoice has been set to /anything/, LilyPond will pick
the next best voice it can find.

The actual value assigned to associatedVoice is only important if there are
multiple voices present to choose from.
Let me illustrate that with an amended example taken from the documentation:

~~~
\version "2.18.2"

\score {
  <<
    \new Staff <<
      \new Voice = "melodyOne" {
        \relative {
          \voiceOne
          a'4 a a a
          \repeat volta 2 { b4 b b b( | c b a b) }
        }
      }
      \new Voice = "melodyTwo" {
        \relative {
          \voiceTwo
          a'4 a a a
          \repeat volta 2 { b4 b b b( | c b2.) }
        }
      }
    >>
    \new Lyrics \lyricsto "melodyOne" {
      Not re -- peat -- ed.
      <<
        { The first time words. __ }
        \new Lyrics {
          \set associatedVoice = "bogus"
          Sec -- ond time words.  __
        }
        \new Lyrics {
          \set associatedVoice = "melodyTwo"
          The third time words.  __
        }
      >>
    }
  >>
}

As you can see, the "Second time words" align with melodyOne (the first to
come in case of bogus assignment), but "The third time words" align with
melodyTwo.

HTH,
Torsten




--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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