repeat [n [k]]

Default Command lineScope Available in
nonenoneimmediateabcm2ps
abc2svg

Try to replace 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 one or two). k 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
M:C
L:1/4
K:C
GABc |\
%%repeat 1 2
GABc | GABc |
X:1 %%pagewidth 16cm M:C L:1/4 K:C GABc |\ %%repeat 1 2 GABc | GABc |

See sample5.abc for more examples.