transpose [ int ["#" | "b"] | <note1><note2> ]

Default Command line Scope Available in
0noneimmediateabcm2ps
abc2svg

Transpose the printed music.

In the first syntax, int is a signed number of semitones.
When "#" or "b" is present, the new key signature(s) will contain sharps or flats in case of enharmonic keys.

In the second syntax, note1 and note2 are notes as found in tune bodies.

When this command appears in a global definition (format file or file header), it applies to all tunes.
When it appears in a tune header, its value is added to the global value and it applies to all voices of the tune.
When found inside a tune body, its value is added to the tune value and it applies to the current voice only.

Note 1: The transposition of key signatures with explicit or added accidental list does not work.

Note 2: abc2svg accepts the transposition operators of the ABC standard v2.2.

%abc-2.1 %%singleline 1
X:1 M:C L:1/4 K:C CEGc |\ %%transpose 2 CEGc |\ %%transpose c_B CEGc |
%abc-2.1 %%transpose cd X:2 M:C L:1/4 K:C CEGc |\ %%transpose 2 CEGc |\ %%transpose c_B CEGc |