repeat [n [k]]

Default Scope Available in

This command replaces a sequence by one or many repeat signs.

When placed after a bar, n indicates the number of measures to be repeated (it may be only 1 or 2). k is used when n is 1. It indicates how many times the previous measure is to be repeated.

When placed after a note or rest, n indicates the number of notes and rests to be repeated, and k how many times this repetition occurs.

When omitted, n and k default to 1. No check is done on the equality of the sequences.

X:1 % %singleline 1 %%pagewidth 10cm M:C L:1/4 K:C C//E//G//E// \ %%repeat 4 3 C//E//G//E// \ C//E//G//E// \ C//E//G//E// | % GABc |\ %%repeat 1 2 GABc | GABc | % G2d2|B2d2|\ %%repeat 2 G2d2|B2d2|c4|]