On Thu 09 Apr 2020 at 18:41:40 (+0200), Noeck wrote:
> Am 09.04.20 um 18:18 schrieb Bernhard Kleine:
> > This would be worth mentioning in the manual!
> 
> glad it works. What exactly would you mention in the manual?
> 
> 1) How to use the \lyricsto construct? It is explained here:
> 
> https://lilypond.org/doc/v2.20/Documentation/notation/common-notation-for-vocal-music.html#aligning-lyrics-to-a-melody
> 
> 2) That you have to use the correct characters ("" instead of „“)?
>    Well, that’s trivial, isn’t it? I mean you cannot use a ` for a '
>    or a { for a (.
> 
> 3) That \addlyrics can fail in some cases and \lyricsto is more robust?
>    There is a small sentence saying
> 
> > The command \addlyrics cannot handle polyphonic settings. … For these cases 
> > one should use \lyricsto.

Yes, this warning comes twice, firstly on p267, quoted here, and later
on p292, "The \addlyrics function only works with Voice lyrics and so
cannot be used with NullVoice."

But what doesn't appear to be well explained is this recent construct:

  \new Staff <<
    \new Voice { \voiceOne \soprano }
    \new Voice { \voiceTwo \alto }
  >>
  \addlyrics { \textj }

An example of two different methods is attached.

Cheers,
David.
\version "2.19.44"
\language english

\paper {
  #(set-paper-size "a5landscape")
  systems-per-page = 2
  ragged-right = ##f
  ragged-last-bottom = ##t
  indent = 0
}

global = {
  \key g \major
  \time 4/4
  s1 * 4
  \bar "||"
}

align = \relative {
  b'4 g d d d g8~ g g4 fs g4 b e,8 fs g~ g c4 b b( a)
}

soprano = \relative {
  b'4 g d d d g g fs g b e,8 fs g4 c b b( a)
}

alto = \relative {
  d'4 b c c b b8 cs d4 d d b e d8 e fs4 g g( fs)
}

texti = \lyricmode {
  \set stanza = "1."
  Come, thou long -- ex -- pec -- ted __ Jes -- us,
  Born to set __ _ thy __ peo -- ple free; __
}

textj = \lyricmode {
  \set stanza = "1."
  Come, thou long -- ex -- pec -- ted __ _ Jes -- us,
  Born to set __ _ thy __ _ peo -- ple free; __ _
}

\new Staff <<
  \clef treble \global
  \new Voice { \voiceOne \soprano }
  \new Voice { \voiceTwo \alto }
  \new NullVoice = valign { \voiceOne \align }
  \new Lyrics \lyricsto valign { \texti }
>>
\layout { }

\new Staff <<
  \clef treble \global
  \new Voice { \voiceOne \soprano }
  \new Voice { \voiceTwo \alto }
>>
\addlyrics { \textj }
\layout { }

Attachment: staff-align.pdf
Description: Adobe PDF document

Reply via email to