|
From: | Marcos Press |
Subject: | Re: \alternative error... |
Date: | Fri, 21 Nov 2014 16:43:39 -0300 |
Hi Marcos,2014-11-21 17:02 GMT+01:00 Marcos Press <address@hidden>:Can someone tell why the small fragment in the attached .ly file, gives these error?You have to put the barlines at the right places ; the following code won't give you any error/warning :
\version "2.18.2"
\relative c'{
\time 2/4
\repeat unfold 2 { r16 fis g a bes a8 fis16 | }
\alternative {
{ g16 fis g a bes a8 fis16 | }
{ g16 fis g a bes a8 e16 | }
}
\repeat unfold 3 { g16 fis g a bes a8 e16 | }
}but won't probably give you what you expected...Another curiosity is, if in the .ly file I write in diferent lines the { } an the music expresions of the \repeat, like these:\repeat unfold 2 {
c c
}
the file compiles with these warning and the pdf voltas results in one less as the warning said:In fact, the \alternative code needs to be preceeded by \repeat volta (and not \repeat unfold) to be expressed ; so here it goes :
\version "2.18.2"
\relative c'{
\time 2/4
\repeat volta 2 { r16 fis g a bes a8 fis16 | }
\alternative {
{ g16 fis g a bes a8 fis16 | }
{ g16 fis g a bes a8 e16 | }
}
\repeat unfold 3 { g16 fis g a bes a8 e16 | }
}
HTH;
Pierre
[Prev in Thread] | Current Thread | [Next in Thread] |