bug-lilypond
[Top][All Lists]
Advanced

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

Multiple repeat nested with alternative


From: Peter Budny
Subject: Multiple repeat nested with alternative
Date: Thu, 12 Mar 2009 05:21:30 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I'm unsure how to enter the following music:

                      ________     ________            ________    ________
                     [1.      ]   [2.                 [1.      ]  [2.
| x x x x | x x x x | x x x x :||: x x x x | x x x x | x x x x :|| x x x x |
     A         B         C            D         E         F           G

The correct order of performance/reading should be:
A B C A B D E F D E G

As you can see, the second repeat is part of the 2nd alternative of the first
repeat.  The logical way to enter this, at first glance, would be:

\version "2.12.1"
\repeat volta 2 { A B }
\alternative {
  { C }
  { \repeat volta 2 { D E }
    \alternative {
      { F }
      { G H I J ... }
    }
  }
}

but this seems very clunky, and in any case doesn't appear to work correctly. 
It generates the warning "already have a volta spanner, ending that one
prematurely".  Setting voltaSpannerDuration (to shorten the 2nd alternatives, as
illustrated above) generates the warning "cannot end volta spanner".

Am I simply doing this incorrectly? It seems like when the final alternative is
"go on to the rest of the piece", the rest of the piece shouldn't need to be
enclosed inside the \alternative, but this is the only (obvious) way to get the
volta bracket.





reply via email to

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