Main sections
MUSICVOLUME
MUSICVOLUME vol#$
Sets the volume of the music that is currently playing. The value vol#$ is in the range of 0 (silent) to 1 (loud).
PLAYMUSIC "Music.mp3"
WHILE TRUE
MOUSESTATE mx, my, b1, b2
// vol = 0.0 ... 1.0
vol = MIN(mx/640, 1.0)
PRINT "Volume: " + INTEGER(vol * 100) + "%", 100,100
MUSICVOLUME vol
SHOWSCREEN
WEND