abcjs logo

abcjs transposition with editor

This demonstrates the different methods of transposition. It is possible to transpose by inserting commands into the ABC string or by using parameters when calling the rendering function. When using the parameters the transposition always adds to whatever the ABC string says. When inserting strings into ABC that always uses the last transposition encountered.

ABC String

Options

Transpose Parameters

These are added to whatever is in the tune (in half steps)

ABC Insertions

These all do the same thing.

Output

Code Sample