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

ParameterTypeContents
instrumentbyteInstrument number (same as command 0x01)
transposesbyteTranspose value
tuningsbyteTuning value
left, rightsbyteLeft and right volume
adsr1, adsr2byteADSR1, 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