[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Repeat syntax

The syntax for repeats is

       \repeat variant repeatcount repeatbody
     

If you have alternative endings, you may add

      \alternative { alternative1
                 alternative2
                 alternative3 ... }
     
where each alternative is a music expression.

Normal notation repeats are used like this:

       c'1
       \repeat volta 2 { c'4 d' e' f' }
       \repeat volta 2 { f' e' d' c' }
     
[picture of music]

With alternative endings:

       c'1
       \repeat volta 2 {c'4 d' e' f'}
       \alternative { {d'2 d'} {f' f} }
     
[picture of music]

Folded repeats look like this:

       c'1
       \repeat fold 2 {c'4 d' e' f'}
       \alternative { {d'2 d'} {f' f} }
     
     
[picture of music]

If you don't give enough alternatives for all of the repeats, then the first alternative is assumed to be repeated often enough to equal the specified number of repeats.

     \context Staff {
       \relative c' {
         \partial 4
         \repeat volta 4 { e | c2 d2 | e2 f2 | }
         \alternative { { g4 g g } { a | a a a a | b2. } }
       }
     }
     
[picture of music]
Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.