Command 0x10: Set ADSR

Sets the channel’s envelope (ADSR).

Syntax

0x10, byte adsr1, byte adsr2

Parameters

ParameterTypeContents
adsr1byteValue of the DSP ADSR1 register
adsr2byteValue of the DSP ADSR2 register

Remarks

Sets the channel’s ADSR1 ($0274+x) and ADSR2 ($0284+x). The new values are written to the DSP at the next key on.
Since the driver writes $7F to the GAIN register on key on, setting bit7 of adsr1 to 0 makes the envelope controlled by GAIN (constant at maximum volume) instead of ADSR.

This command takes no time to process, and the following event is read within the same tick.

See also

Structure of sequence data
Command 0x22