repeat [n [k]]

Default Command line Scope Available in

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 1 or 2). k indicates how many times the previous measure is to be repeated (n must be 1).

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 M:C L:1/4 K:C GABc |\ %%repeat 1 2 GABc | GABc |

See in the abcm2ps tarball for more examples.