lilypond-user
[Top][All Lists]
Advanced

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

bypass \set associatedVoice altogether?


From: Trevor Baca
Subject: bypass \set associatedVoice altogether?
Date: Wed, 24 Aug 2005 07:59:37 -0500

Why does the second set of lyrics with \set associatedVoice align incorrectly?

And, in general, should I bypass \set associatedVoice altogether and
insert fake spaces, as in the third set of lyrics (which do work
correctly)?

%%%%%%%%%% BEGIN LYRICS ALIGNMENT SNIPPET %%%%%

\version "2.7.7"

theVoice = {
   \time 2/4
   \set Staff.autoBeaming = ##f
   d''8
   <<
      {
         \voiceOne
         d''16
         d''16
         \oneVoice
      }
      \context Voice = "alternative" {
         \voiceTwo
         d''8
         \oneVoice
      }
   >>
   d''8
   d''8
}

theFirstLyrics = \lyricmode {
   \set stanza = "GOOD: "
   Five words in this voice.
}
theSecondLyrics = \lyricmode {
   \set stanza = "BAD :"
   \set associatedVoice = "alternative"
   On --
   % reverts to mainVoice 1/16th too early:
   \set associatedVoice = "mainVoice"
   ly
   four
   here.
}

theThirdLyrics = \lyricmode {
   \set stanza = "GOOD: "
   On --
   ly
   " "
   four
   here.
}

\score {
   \new Staff <<
      \context Voice = "mainVoice" \theVoice
      \new Lyrics \lyricsto "mainVoice" \theFirstLyrics
      \new Lyrics \lyricsto "mainVoice" \theSecondLyrics
      \new Lyrics \lyricsto "mainVoice" \theThirdLyrics
   >>
   \layout {
      raggedright = ##t
   }
}

%%%%%%%%%%% END LYRICS ALIGNMENT SNIPPET %%%%%

Trevor Bača
address@hidden

Attachment: lyrics-alignment.png
Description: PNG image


reply via email to

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