Next: , Up: Short repeats


Percent repeats

Repeated short patterns of notes are supported. The music is printed once, and the pattern is replaced with a special sign. Patterns that are shorter than one measure are replaced by slashes, and patterns of one or two measures are replaced by percent-like signs. The syntax is

\repeat percent number musicexpr

where musicexpr is a music expression.

     
     \repeat percent 4 { c4 }
     \repeat percent 2 { b4 a g f }
     \repeat percent 2 { c2 es | f4 fis g c | }

[image of music]

Selected Snippets

Percent repeat counter

Measure repeats of more than two repeats can get a counter when the convenient property is switched, as shown in this example:

     
     \relative c'' {
       \set countPercentRepeats = ##t
       \repeat percent 4 { c1 }
     }

[image of music]

Isolated percent repeats

Isolated percents can also be printed. This is done by entering a multi-measure rest with a different print function:

     
     \relative c'' {
       \override MultiMeasureRest #'stencil
          = #ly:multi-measure-rest::percent
       R1
     }

[image of music]

See also

Music Glossary: percent repeat, simile.

Snippets: Repeats.

Internals Reference: RepeatSlash, PercentRepeat, DoublePercentRepeat, DoublePercentRepeatCounter, PercentRepeatCounter, PercentRepeatedMusic.

Known issues and warnings

Only three kinds of percent repeats are supported: a single slash representing a single beat (regardless of the duration of the repeated notes); a single slash with dots representing one full measure; and two slashes with dots crossing a bar line representing two full measures. Neither multiple slashes representing single beat repeats consisting of sixteenth or shorter notes, nor two slashes with dots representing single beat repeats consisting of notes of varying durations, are supported.

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, deutsch.