Need to make music persist through a battle

Hello everyone, this is a question regarding VX's music and BGS features.

What I want to do is simple: Have the same track play, uninterrupted or without restarting, over a battle. Changing the battle music to the same playing in the background, at the same pitch and volume has no effect, as it restarts when the battle begins.

This is something similar to the scene when Aeris dies in FF7, her theme plays in the background, and then you start a battle against the boss while her theme continues uninterrupted.

If there was a way to have BGS play during battle, it would also be helpful, as long as they played uninterrupted. I guess it's not possible without a script, though.

Thanks in advance for any advice and support.

-D.
Well, if the music file is in .ogg, it's very possible to edit the file to loop seamlessly. Even if it's another type of file, it can still be saved AS a .ogg file. This can be accomplished with audio-editing software like Audacity. In terms of having a song carrying over from the map to the battle, itself, I don't really know. Then again, I've never tested with such things, but a solution may very well be possible without scripting.

Hope this helped!
The only way I know to do this without a script is to set the BGM for the scene and the BGM for the battle to be the same music. In that case, then it will have the music seamlessly flow into the battle. You can do this with the set battle BGM command (page 3 of the events) to set the battle music. Just be sure to set the battle music back when this is all done, or you will have that music as your new BGM for all fights going forward!
Well, if the music file is in .ogg, it's very possible to edit the file to loop seamlessly. Even if it's another type of file, it can still be saved AS a .ogg file. This can be accomplished with audio-editing software like Audacity. In terms of having a song carrying over from the map to the battle, itself, I don't really know. Then again, I've never tested with such things, but a solution may very well be possible without scripting.

Hope this helped!
The problem is not making it loop. That's already taken care of. BD   It's making it carry from the map to the battle.

The only way I know to do this without a script is to set the BGM for the scene and the BGM for the battle to be the same music. In that case, then it will have the music seamlessly flow into the battle. You can do this with the set battle BGM command (page 3 of the events) to set the battle music. Just be sure to set the battle music back when this is all done, or you will have that music as your new BGM for all fights going forward!

Already done, doesn't work. Music plays, battle begins, music restarts. Same format, same file, same pitch and volume. VXAce may do it, VX doesn't. Any further help is appreciated, especially if anyone can point me to a script for such a thing. Thanks to you both for the input, though.
If there was a way to have BGS play during battle, it would also be helpful, as long as they played uninterrupted. I guess it's not possible without a script, though.
As far back as I can recall, I don't think it was ever possible without a script in VX. There might be some real top secret means of eventing this, but I'm doubtful. VX.net used to have a script or two that did this, unfortunately it's one of the things lost now that the site is gone.

Found this at RMRK. Not sure how good it is:

http://rmrk.net/index.php/topic,32892.0.html
All right, thanks a lot. Script it is. My question's been answered. Cheers!

Original thread: https://forums.rpgmakerweb.com/threads/need-to-make-music-persist-through-a-battle.34807/