Random Background Music or playlist possible approaches?

I'm few steps to publish my game, but one thing bothers me for few days, unfourtunately my real, full-time job does not allow me to use RMMV as lot as I would and could do, the thing is my maps are quite big and game is set to exploration, but after 20, maybe 30 minutes the same background music can be pain in a*s, so is there a way to play randomly background music or at least make some playlist?

I tried with js scripting and on Autorun event init variable "x" 0 - 3 and depending on value play specific theme, wait(duration of music) and choose another theme, however storing variables with converted themes duration to frames and put series of if/else does not look good and professional, but code itself works, but music sometimes - i forgot word, hmmm.... cuts (???)

Don't ask me for this code, because I deleted it - I'm excentric man - I don't keep my work, especialy I say it is junk.
you're going to need to make sure that your tracks have metadata containing the length of the track.
that way you can read the length directly from the track, and forget about guessing numbers, and just write directly "change track after [track length] seconds" regardless of track, and length.

.ogg tracks can do that.
look into Audacity or Adobe Audition, both good mixers which can edit metadata.
read MV's JS documentation for how to call those values from the code.

Original thread: https://forums.rpgmakerweb.com/threads/random-background-music-or-playlist-possible-approaches.95339/