bug-lilypond
[Top][All Lists]
Advanced

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

Re: repeat volta 2


From: pihentagy
Subject: Re: repeat volta 2
Date: Thu, 25 Jun 2015 02:41:29 -0700 (MST)

tisimst wrote
> Gergely,
> 
> On Mon, Jun 22, 2015 at 2:55 PM, Gergely [via Lilypond] <

> address@hidden

>> wrote:
> 
>> > I'm not top posting.
>>
>> % Should I expect lilypond to understand what's going on?
>> % violin and viola are both 5 bar lenght staff, but see the combined
>> output?
>>
>> violin = \relative c'' {
>> \repeat volta 2 { c4 d e f | }
>> \alternative { { c2 e | } { f2 g | } }
>> c1
>> }
>>
>> viola = \relative c' {
>> \repeat volta 2 { c4 d e f | c2 c }
>> c1
>> }
>>
>> \score {
>>   <<
>>     \new Staff \violin
>>      \new Staff { \clef alto  \viola }
>>   >>
>> }
>>
> 
> Not a bug. Actually, they aren't the same length. If we line up the two
> parts I get this:
> 
> violin = |: c4 d e f | c2 e :| f2 g | c1 |
> viola =  |: c4 d e f | c2 e :| c1   |

Nope, it is:



tisimst wrote
> So, looking at it by the raw musical content, I see 4 bars for violin and
> only 3 for viola. The problem would seem to be the missing 2nd alternative
> ending for the viola. Does this help clarify what's going on? The \repeat
> function won't automatically duplicate the notes for you. You need to do
> that, like you did with the violin part:
> 
> viola = \relative c' {
>   \repeat volta 2 { c4 d e f | }
>   \alternative { { c2 e | } { c2 e | }}
>   c1
> }
> 
> Note that there are fancier ways of dealing with this situation, but see
> if
> what I've explained works for you.
> 
> HTH,
> Abraham

I am interested in the fancier ways. And shouldn't lilypond warn me / throw
me an error about that inconsistency?




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/repeat-volta-2-tp178090p178188.html
Sent from the Bugs mailing list archive at Nabble.com.



reply via email to

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