Previous: Manual repeat marks, Up: Long repeats
By using the unfold
command, repeats can be used to simplify
the writing out of repetitious music. The syntax is
\repeat unfold repeatcount musicexpr
where musicexpr is a music expression and repeatcount is the number of times musicexpr is repeated.
c1 \repeat unfold 2 { c4 d e f } c1
Unfold repeats can be made with alternate endings. If there are more repeats than there are alternate endings, the first alternative ending is applied to the earliest endings.
c1 \repeat unfold 2 { g4 f e d } \alternative { { cis2 g' } { cis,2 b } } c1
Snippets: Repeats.
Internals Reference: RepeatedMusic, UnfoldedRepeatedMusic.
This page is for LilyPond-2.11.58 (development-branch).
Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.
Your suggestions for the documentation are welcome.
Other languages: espaƱol.