MV How to get and set battle music?

I made a skill to teleport the party inside a special dungueon and teleport back, this skill can be used from anywhere.

Additionally every dungueon in the game has its own battle music, and the special dungueon has its own battle music too.

So, I am looking for a way to save the current music before moving the party to the special dungueon and load it when the party teleports back to the current dungueon.

How to get and set battle music?

This is what I tried to store it:

JavaScript:
$gameSystem.getBattleBgm(); // I don't know if this method exists.

And this to get it:

JavaScript:
$gameSystem.setBattleBgm($gameVariables.value(1234)); // 1234 is the variable where I stored it
OOOOH!!!

Forget it, I just found it!

If anyone is looking how to get the battle music, this is the method:

JavaScript:
$gameSystem.battleBgm();
I'm not at my computer right now, but isn't there a built in event command for saving and loading battle music?

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-and-set-battle-music.146261/