Command 0x11: Set master volume

Sets the DSP master volume.

Syntax

0x11, sbyte left, sbyte right

Parameters

ParameterTypeDescription
leftsbyteLeft master volume
rightsbyteRight master volume

Description

Immediately sets the DSP master volume (MVOL) and saves it to $0230, $0231 as the base value for fade-out.

If the mono flag is set, the left and right values are added with 8-bit unsigned addition and divided by 2; that value is saved and written to the right master volume.

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

Note

  • In mono, left is written as is to the DSP left master volume rather than the average (the saved value is the average).
  • If this command is executed during a fade-out, the value is overwritten at the next BGM tick with the base value minus the fade value.

See also

Sequence data structure
Command 0x29