BGMSTOP (Command)

will stop music playing on any of the 8 tracks.

If  is used without any parameters, the music on track 0 is stopped immediately.

If  is used with one parameter, it is used as the track number (0 to 7). The music playing on that track is stopped immediately.

If  is used with two paramaters, the first is the track number, and the second is the fade time. The music playing on the specified track gets gradually quieter, disappearing after the specified time (measured in seconds).

See also BGMCHK (function).