abcjs logo

Tempo

Tempo can be set in various ways: it can be specified in the ABC string, it can be specified in the parameters passed in, or a default can be set that is only used if the tempo is not in the string.

Specified in the ABC String

The tempo is set using the Q: 1/4=150 line.

Passed in as a Parameter

The tempo is set using the { qpm: 100 } attribute. Notice that this overrides the tempo in the Q: line.

Using a default

The tempo is set using the { defaultQpm: 60 } attribute. Notice there is no Q: line.

The tempo is set using the { defaultQpm: 60 } attribute. However, there is a Q: line, so that takes precedence.