bug-lilypond
[Top][All Lists]
Advanced

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

two mistakes with lyrics syntax causes lilypond to crash


From: Eduardo Vieira
Subject: two mistakes with lyrics syntax causes lilypond to crash
Date: Sat, 16 Dec 2006 10:30:06 -0200
User-agent: Internet Messaging Program (IMP) 3.2.4

I don't know if this kind of report is acceptable, as the error was from my part
in writing a wrong syntax. But I guess a warning should be the proper reaction
instead of a crash:

%%%%%%%%%%
\version "2.10.2"
verse= \lyricmode {
come good old friends

}

%%% inserting: \skip 1 avoids the crash

versalt = \lyricmode {  and let's have more fun }

staffSoprano = \new Staff  {
        \time 6/8
        \key c \major
        \clef treble
        \relative c' {
        \context Voice = "melodySop" {
        \partial 4. < g' e >8 < f d > < e c > << {\voiceOne c'4. ~ c4. } \new 
Voice =
alt {\voiceTwo e,4 e8 e8 e e} >> \oneVoice
 << {\voiceOne r4. r4. } \context Voice = alt { g4. ~ g4. } >>
                }

        \bar "|."
        }

}


\score {
        <<
                \staffSoprano
%% this is a wrong construct
                \context Lyrics = "lmelodySop" \lyricsto "melodySop" { \verse } 
\lyricsto alt
{ \versalt }

        >>

}

%%% NOW A WORKING EXAMPLE:

verse= \lyricmode {
Come good old friends

}

%% If I remove the \skip 1, it doesn't crass

versalt = \lyricmode { \skip 1 and let's have more fun }


staffSoprano = \new Staff  {
        \time 6/8
        \key c \major
        \clef treble
        \relative c' {
        \context Voice = "melodySop" {
        \partial 4. < g' e >8 < f d > < e c > << {\voiceOne c'4. ~ c4. } \new 
Voice =
alt {\voiceTwo e,4 e8 e8 e e} >> \oneVoice
 << {\voiceOne r4. r4. } \context Voice = "alt" { g4. ~ g4. } >>
                }

        \bar "|."
        }

}


\score {

        <<
                \staffSoprano
                \context Lyrics = "lmelodySop" \lyricsto "melodySop" { \verse   
}
                \context Lyrics = "lmelodySop" \lyricsto "alt" { \versalt }
    >>


}


___________________________________________________________________________________
Com o Click21 você tem sempre vantagens! Além do email com 1 Gb, Acelerador, 
Blog,
Flog, Games e atendimento 24 horas, voce também pode falar minutos DDD com a
promoção Click 21 Minutos. Quanto mais você navega mais fala DDD.





reply via email to

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