How do I play a sound until the player exits an event?

I’m trying to add an event where the player plays a song, but I don’t know how to make it stop after the event ends. I’m new to mpg maker so I’m still learning.
1711241518714.png

Alternatively if you want the sound to stop immediatly pick "Play BGM" and select "none".
How are you playing the song? The event commands to play BGM, BGS and SE all have stop/fadeout commands right next to them, so you'd simply put the correct one at the end of your event.
I may have not read all of the commands.
Fair enough! It's a good idea to read through all of the event commands, referencing the help file to get a description of what they do.

You won't have them all memorized or anything, but when you want to do something you'll have a recollection that it exists.

Good luck with your project!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-play-a-sound-until-the-player-exits-an-event.167105/