Music transition: crossfades?

Does anyone know of a good way or plugin to do X-fades in MV?

Specifically, I'm using the Moghunter's Chrono Engine, in which battle happens on the map, not on separate battle screen and there's no transition screen crossfade. What happens is the BGM gets interrupted rather abruptly and the battle music rushes in very aggressively.

Any ideas how to solve that? I didn't find any music controls in the general settings of the project (other than just changing the battle music).

Help pls 🙂
Well, i think you can fadeout the first bgm, then start play and fade in the next bgm.

With this command(i think that exists in events page too...):

Code:
obj = { name: "Town1", pan: 0, pitch: 100, volume: 100 };
        AudioManager.playSe(obj);
        AudioManager.fadeInBgm(nº of frames to fade);
        AudioManager.fadeOutBgm(nº of frames to fade);

The problem is that without a plugin to preload audio (or without the bgm has been already played in the map) can happen a delay. In my pc this delay is like a 7 seconds.
But when i use the preload audio plugins, i have no delay.

If you want to preload a bgm in the map without plugin, you can do this trick:
As soon as the map start put the bgm to play in an event with volume 0.
Then put the bgm you want.

I THINK the mv "preload" bgm only for maps, as soon as you leave the map, the bgm is not preload anymore.

But instead you can use plugins.

I dont know if it will work exactly like you want, because i not test it.
But at least is a thing for you to try ^^
Thank you, this gives me a starting point in an investigation. But how will it work with the battle music? I don't exactly have control over it - it just plays when the battle begins.
Thank you, this gives me a starting point in an investigation. But how will it work with the battle music? I don't exactly have control over it - it just plays when the battle begins.
I will take a look in to the plugin.

[[EDIT]]Well, i make to have a FadeIn bgm to the battle music.
I'm trying to fade out the bgm music of the map now when the player enters in to the battle.

To add a fadeIn in the battle music just add this code after the line 3707(MOG_ChronoEngine):
AudioManager.fadeInBgm(180);

Where, 180 is the number in frames for the bgm fade in.

[[EDIT 2]] - Well, thats it. I cannot make it.
The only thing that i can make is one or another:

1 - Or you choose to fade out the map bgm. Then the battle bgm will play abruptly after the map bgm has faded out.
Code:
Game_Chrono.prototype.battleStartChrono = function() { // line 3705
    AudioManager.fadeOutBgm(60);
    BattleManager.playBattleBgm();

2 - Or you chose to fade in the battle bgm, but the map bgm will stop abruptly.
Code:
Game_Chrono.prototype.battleStartChrono = function() { // line 3705
    BattleManager.playBattleBgm();
    AudioManager.fadeInBgm(60);


In my opinion the number one is a best solution.

But maybe someone can handle it, but in the moment, i cannot.
guess it will work
Thank you @Eliaquim - I will test it out and see how it works. Really great stuff.
To add a fadeIn in the battle music just add this code after the line 3707(MOG_ChronoEngine):
AudioManager.fadeInBgm(180);

This works, but for some reason, it only fades in to like 50% of the volume and then for some reason pops to 100% volume when the enemy gets killed. Weirdness.
This works, but for some reason, it only fades in to like 50% of the volume and then for some reason pops to 100% volume when the enemy gets killed. Weirdness.
Maybe put the fade time to 60 this can be solved?
Yeah but it's hard. The proper thing is someone that really understand change the plugin or make another plugin to handle the audio :/
Maybe there are some out there...
Yeah, I tried to put it to 30 yesterday and it had the same results. I'll play around with it. Thanks for help anyway. One other way to do it is to actually make the track itself fade in after all 🙂

Original thread: https://forums.rpgmakerweb.com/threads/music-transition-crossfades.108479/