Great!
To fade out the current BGM, you can use the
Fadeout BGM event command.
To fade in the new BGM, you can add a line to the end of the script call I suggested:
JavaScript:
AudioManager._bgmBuffer.fadeIn(1);
I.e. "fade in the BGM over 1 second" - replace the
1 with whatever value you like.
So the final event might look like this:
◆Fadeout BGM:1 second
◆Wait:60 frames
◆Script:AudioManager.playBgm({
: : name: "Battle3",
: : volume: 4,
: : pitch: 100,
: : pan: 0
: :}, AudioManager._bgmBuffer.seek());
: :AudioManager._bgmBuffer.fadeIn(1);
If you want cross-fade instead (i.e. fade in new track while old one is fading out) then I'd suggest looking for a plugin, since by default there's only 1 BGM buffer. Maybe this one?
Original Plugin: https://forums.rpgmakerweb.com/index.php?threads/mush-audio-engine-spatial-audio-voice-acting-new-channels-etc.128741/ Now For MV! Introduction With permission and at the request of several others in the original thread, I am publicly releasing my quick-and-dirty MV...
forums.rpgmakerweb.com