Command 0x22: Set instrument parameters at once
Sets instrument, transpose, tuning, volume and ADSR all at once.
Syntax
0x22, byte instrument, sbyte transpose, sbyte tuning, sbyte left, sbyte right, byte adsr1, byte adsr2
Parameters
| Parameter | Type | Contents |
|---|---|---|
| instrument | byte | Instrument number (same as command 0x01) |
| transpose | sbyte | Transpose value |
| tuning | sbyte | Tuning value |
| left, right | sbyte | Left and right volume |
| adsr1, adsr2 | byte | ADSR1, ADSR2 |
Remarks
Performs, in a single command, the same settings as executing commands 0x01, 0x13, 0x12, 0x02 and 0x10 in succession. The volume handling in mono mode is also the same as command 0x02.
This command takes no time to process, and the following event is read within the same tick.
See also
Structure of sequence data
Command 0x01
Command 0x02
Command 0x10
Command 0x12
Command 0x13