bug-lilypond
[Top][All Lists]
Advanced

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

Re: Multiple repeat nested with alternative


From: Brett Duncan
Subject: Re: Multiple repeat nested with alternative
Date: Fri, 13 Mar 2009 11:17:21 +1100
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Peter Budny wrote:
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 ... }
    }
  }
}


The following seems to work for me:

\repeat volta 2{ A B }
\alternative{
    { C }
    \repeat volta 2{ D \set Score.repeatCommands = #'((volta #f)) E }
    \alternative {
        { F }
        { G }
    }
}
H I J ...

Brett




reply via email to

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