Command 0x0B: Set tempo
Sets the BGM tempo.
Syntax
0x0B, byte tempo
Parameters
| Parameter | Type | Description |
|---|---|---|
| tempo | byte | Tempo |
Description
Sets the BGM tempo ($27). Every timer period the tempo is added to the tempo accumulator, and each time it overflows the BGM sequence advances by one tick.
The number of ticks per second is (8000 ÷ timer 0 divider) × tempo ÷ 256.
This command takes no time to process; the following event is read within the same tick.
Note
- Executing it on an SE channel also changes the BGM tempo. The SE tempo cannot be changed from the value specified in the sequence data header.