Gergely, On Mon, Jun 22, 2015 at 2:55 PM, Gergely [via Lilypond] < ml-node+s1069038n178090...@n5.nabble.com> 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 | 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 -- View this message in context: http://lilypond.1069038.n5.nabble.com/repeat-volta-2-tp178090p178094.html Sent from the Bugs mailing list archive at Nabble.com. _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond