BGMSETV (Command)

is a command which changes MML variables. It takes three parameters, a track number (0 to 7 inclusive), a variable number (0 to 7 inclusive), and a value to write to the variable (0 to 255 inclusive).

For example, after executing, the system will regularly play a note. After, the note will change.

See also BGMGETV (function)