lilypond-user
[Top][All Lists]
Advanced

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

Lyric problem when alternative begins with a rest


From: Tim Rowe
Subject: Lyric problem when alternative begins with a rest
Date: Tue, 12 May 2009 14:59:23 +0100

If I set lyrics against a repeat with alternative endings the way I
find in the documentation, it all works fine -- usually. This is ok,
for example.

melody = \relative c' {
  \repeat volta 2 {
    c4 d e f |
  }
  \alternative
  {
    { g1 }
    { c,1 }
  }
}

words = \lyricmode  {
  \repeat volta 2
  {
    do re mi fa |
  }
  \alternative
  { so }
  { do }
}

\score {
  <<
  \new Staff { \melody }
  \addlyrics { \words }
  >>
}

But if an alternative begins with a rest, I get a spurious repeat mark
where the lyric comes in:

\version "2.12.2"
\include "english.ly"

melody = \relative c' {
  \repeat volta 2 {
    c4 d e f |
  }
  \alternative
  {
    { r2 r4 g4 }
    { c,1 }
  }
}

words = \lyricmode  {
  \repeat volta 2
  {
    do re mi fa |
  }
  \alternative
  { so }
  { do }
}

\score {
  <<
  \new Staff { \melody }
  \addlyrics { \words }
  >>
}

Am I setting the repeat wrongly, or do I have to do something like
turn the Volta_engraver for the lyrics?

-- 
Tim Rowe




reply via email to

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