lilypond-user
[Top][All Lists]
Advanced

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

Re: New try with lyric extender


From: David Nalesnik
Subject: Re: New try with lyric extender
Date: Thu, 13 Feb 2014 08:36:01 -0600

Hi Yann,


On Thu, Feb 13, 2014 at 8:27 AM, Yann <address@hidden> wrote:


I have a problem with the code below, lilypond gives me errors with
the two scheme expressions.

 \version "2.18.0"

 correctionAlignement = ##t
 aligner = \relative c' { g'4. g8 c,4( c) | }
 lyrics = \lyricmode { Glo -- ri -- a __ }

 <<
   \new Staff <<
     \new Voice = "melodie" \relative c'{ \voiceOne g'4. g8 c,2 | | }
     \new Voice = "alto" \relative c' { \voiceTwo c4 bes c2 | }
     #(cond ((eq? correctionAlignement #t)
       (#{ \new NullVoice = "aligner" \aligner #})))
   >>
   #(if (eq? correctionAlignement #t)
     (#{ \new Lyrics \lyricsto "aligner" $lyrics #})
     (#{ \new Lyrics \lyricsto "melodie" $lyrics #}))
 >>

Can someone tell me why ?
Thanks in advance ! :)

Looks to be simply a problem with too many parentheses.

Try this:

 \version "2.18.0"

correctionAlignement = ##t

aligner = \relative c' { g'4. g8 c,4( c) | }

lyric = \lyricmode { Glo -- ri -- a __ }

<<

  \new Staff <<

    \new Voice = "melodie" \relative c'{ \voiceOne g'4. g8 c,2 | | }

    \new Voice = "alto" \relative c' { \voiceTwo c4 bes c2 | }

    #(cond ((eq? correctionAlignement #t)

      #{ \new NullVoice = "aligner" \aligner #}))

  >>

  #(if (eq? correctionAlignement #t)

       #{ \new Lyrics \lyricsto "aligner" $lyric #}

       #{ \new Lyrics \lyricsto "melodie" $lyric #})

>>


I renamed your "lyrics" to avoid the warning about use of a reserved word.

HTH,
David

reply via email to

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