Does RPG Maker MV Loop Music Automatically?

Hello there, 


I have a scene in where some timed music plays on one map, then goes to a second map and needs to stop naturally (end of song), but the song loops forever. I don't want to put a "stop bgm" event in or anything, or a fade bgm, as the song has a very unique reverberated effect that I'd like to keep. There's no way for me to keep track of exactly where the bgm is (actually in the worst case scenario I could use a timer variable and parallel processes, or scripting).


I'm wondering firstly, is music supposed to loop by default like this in rmmv, and if so, how do you get it to stop once the song reaches it's end, instead of looping?


I'm aware of how to put properties into the .ogg file when exporting from audacity, but I'm not aware what properties you would put. The only ones I know are LOOPLENGTH and LOOPSTART (I think it's loopstart, right?). From what I'm aware of, these only help to further loop the song.


But to recap, I just want the song/ogg file to stop once it reaches it's natural normal end automatically, without looping, and in rmmv it's looping.


Any help is much appreciated ahead of time, 


Thanks
Hiya Astracat,


I can't think of any alternative ways to stop a music track from playing in MV other than the ones you mentioned, but I can answer your first question about music looping. All music is set to repeat from start to finish, unless you have specified a Loopstart and Looplength to have the music properly loop in the sections you want it to. Hopefully someone can shine some light on some other possible ways to end a track without the use of MV commands.
I'd honestly put the music file you want into the "ME" folder and play it as a musical effect (i think thats what "me" stands for). You'll still have to disable the BGM so it doesn't overlap with the music you want but it'll end naturally like all "me"s do and then you can command the music back on. that or do the same thing with the "Se" folder
EDIT: Okay, so messing around with it, you can either use an ME as RLFHOG3 stated, or an SE, or if you want to keep it as a BGM you set LOOPSTART to the end of your song in samples in Audacity, and LOOPLENGTH to 0. 


Gotcha, thanks guys.


I could play it as an SE, but due to the fact that I want to have it organized in a such a manner in where all of the music is in one place, I'll just create a timer in javascript that counts the milliseconds then shuts it off. 


Another idea I had was to set the LOOPSTART to the last sample of the music and LOOPLENGTH to 0. Maybe that'd work as well. 


In any case, thanks again.

Original thread: https://forums.rpgmakerweb.com/threads/does-rpg-maker-mv-loop-music-automatically.63640/