Command 0x0B: Set tempo
Sets the BGM tempo.
Syntax
0x0B, byte tempo
Parameters
| Parameter | Type | Contents |
|---|---|---|
| tempo | byte | Tempo |
Remarks
Sets the BGM tempo ($1F). On each timer period, the tempo is added to the tempo accumulator, and each time it overflows, the BGM sequence advances by 1 tick.
The number of ticks per second is 80 × tempo / 256.
This command takes no time to process, and the following event is read within the same tick.
Note
- Even when executed on an SE channel, the BGM tempo is changed. The SE tempo cannot be changed from the value specified in the sequence data header.