[Dev] Audio Crossfade

By request, I've put together a plugin that allows you to basically set up audio crossfades.

You can see an example here: http://forums.rpgmakerweb.com/index.php?/topic/46964-seamless-bgm-crossfade-on-mapbattle/



The use case I'm working with is

1. You can two songs

2. They have the same length and overall structure

3. They just sound a bit different

4. When you switch between songs, there should be some sort of "smooth" transition.

So like, maybe the first song is nice and slow on the map, but then when you encounter an enemy, it fades into the second song that sounds faster and more intense.

Then after the battle is over it goes back to the first song, but continuing from where the first song left off.

Here is an example (I just changed the pitch, so it doesn't sound as smooth, but it's for demo purposes)



The way I am currently planning on implementing it is to have you specify which two songs will be used to crossfade. In a plugin command, you would write

audio_crossfade SONG1 into SONG2This means whenever song 1 is playing, if you play song 2, the game will notice that you have a crossfade set up for these.The plugin will also come with functions to fade-in audio, which is something MV doesn't support by default I believe.

It already supports fade-out, but I might make it so that you can fade out in... 0 seconds?
Just visited this forum again. I just want to say thank you for considering my request.

I know you're currently busy with other plugins, but I'm still looking forward to this plugin getting finished. Thanks again 🙂
I ran into some issues with checking which music should be played and decided to put it aside for now. Maybe when I look at it again I'll find a solution.
Man, I sure hope you get this to work! 


I am making mountains that get snowy towards the top and some sad violins kick in when you hit the snowy part, it would be AWESOME to not have a delay when that happens. So, BUMP THIS THREAD lol.


So far every time I use one of your plugins, it makes my life soooo much easier!

Original thread: https://forums.rpgmakerweb.com/threads/dev-audio-crossfade.50595/