lilypond-user
[Top][All Lists]
Advanced

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

Re: Extraneous repeat with leading rest


From: Xavier Scheuer
Subject: Re: Extraneous repeat with leading rest
Date: Thu, 24 Jan 2013 22:05:36 +0100

On 24 January 2013 20:34, Todd Hesla <address@hidden> wrote:
> When processing a repeat block with a leading rest (and lyrics), Lilypond 
> 2.14.2
> adds an extraneous leading repeat sign where the lyrics start (after the 
> rest).
> The snippet below reliably reproduces the problem.  If the lyrics are removed
> (that is, if the "lyricsto" line is commented out), the extraneous repeat sign
> disappears.
>
> - - - - - - - - - - - - - - - - - - - - - - - - - -
> \version "2.14.2"
>
> notes = \relative c' {
>   c4 c c c |
>   \repeat volta 2 { r c d e | f g a( b) | c1 | }
> }
>
> words = \lyricmode {
>   I want to sing.
>   \repeat volta 2 {
>     Cre -- ate in me a clean heart.
>   }
> }
>
> \score {
>   \new Staff <<
>     \clef treble
>     \time 4/4
>     \key c \major
>     \new Voice = "solo" \notes
>     \lyricsto "solo" \new Lyrics \words
>   >>
> }
> - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> Lilypond appears to be confused by the presence of the lyrics into thinking 
> that
> the repeat block starts where the lyrics begin (after the rest).
>
> Is this a bug, or is there a way to get Lilypond to realize that the repeat
> block actually starts before the rest.

Hi,

Yes this is an issue (also present with current version 2.17.10).
But it won't be easy to determine how to properly solve it, IMHO.

Cc: bug-lilypond
There is no open issue about this on the tracker AFAICS, so could you
add it please?

@Todd
As a workaround you can use \unfoldRepeats for lyrics words only.

%%%% Lily code
\version "2.14.2"

notes = \relative c' {
  c4 c c c |
  \repeat volta 2 {
    r c d e |
    f g a( b) |
    c1 |
  }
}

words = \lyricmode {
  I want to sing.
  \repeat volta 2 {
    Cre -- ate in me a clean heart.
  }
}

\score {
  <<
    \new Staff {
      \clef treble
      \key c \major
      \time 4/4
      \new Voice = "solo" {
        \notes
      }
    }
    \new Lyrics \lyricsto "solo" {
      \unfoldRepeats {
        \words
      }
    }
  >>
}
%%%% End of lily code

Cheers,
Xavier

-- 
Xavier Scheuer <address@hidden>



reply via email to

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