- Joined
- Oct 18, 2015
- Messages
- 2
- Reaction score
- 0
- First Language
- Indonesian
Hi. I have some basic experience in JS but I just got into RM so I'm very new to everything including scripting here.
:
Basically what I'd like to see is a script to make seamless transitioning BGM crossfade between map & battle musics.
Examples of my favorite games which use this music system are Fire Emblem: Awakening & Fates, .hack//Infection~Quarantine, and Oboro Muramasa: The Demon Blade. Here's an example video from the latter game:
I really like how the music flows very smoothly with that feature, so I'd love to have the same thing possible in RM.
I've searched through this forum and found out there's a script like this made for VX Ace ( http://forums.rpgmakerweb.com/index.php?/topic/2472-cross-fade-audio-script/ ).
Actually I've also tried experimenting about it with this at webpage ( http://www.html5rocks.com/en/tutorials/webaudio/intro/#toc-xfade Equal power crossfading ) and I managed to control a very smooth crossfading using button click or switch instead of slider like in the previous link.
...but since MV seems to use HTML5 Audio instead of Web Audio API, I'm not sure if this code could be directly applied to a script here..
After looking at the pre-release plugin videos, the way I'm envisioning for this plugin's options would be like this:
-First of all prepare 2 similarly named files in the music folder, for example Field1 & Field1B
-In Map Properties, if we place a <Crossfade BGM> notetag and Autoplay BGM is specified to Field1, when this map is loaded the script would load both Field1 & Field1B (filename + 'B'), connect both of them to the same node, and play both BGMs at the same time while muting Field1B
-When entering battle, BattleManager.playBattleBgm from rpg_managers.js would fade-off Field1 and fade-in Field1B instead of playing system's battle bgm
-When returning to map, AudioManager.replayBgm(this._mapBgm); would instead fade back to Field1
-If another BGM gets loaded due to moving to another map or set by events, the crossfade BGM & functions might need to be reset too
-Would be better too if there can be plugin parameters so that people can set the crossfade duration (I have maxValue & fadeFrame vars in my web code for example)
I wish I could actually make this script right now, but since I'm very new to RM I think it's better for me to learn RM as a whole for now. I hope I'll have enough exp to help adjusting scripts especially around the time someone finishes a tactical battle system plugin.
Last but not least, I've also attached a zip of my experiment of crossfading in webpage with Web Audio API, hope it can be of a reference. Thank you very much for considering this
bgmcrossfade.zip
Basically what I'd like to see is a script to make seamless transitioning BGM crossfade between map & battle musics.
Examples of my favorite games which use this music system are Fire Emblem: Awakening & Fates, .hack//Infection~Quarantine, and Oboro Muramasa: The Demon Blade. Here's an example video from the latter game:
I really like how the music flows very smoothly with that feature, so I'd love to have the same thing possible in RM.
I've searched through this forum and found out there's a script like this made for VX Ace ( http://forums.rpgmakerweb.com/index.php?/topic/2472-cross-fade-audio-script/ ).
Actually I've also tried experimenting about it with this at webpage ( http://www.html5rocks.com/en/tutorials/webaudio/intro/#toc-xfade Equal power crossfading ) and I managed to control a very smooth crossfading using button click or switch instead of slider like in the previous link.
...but since MV seems to use HTML5 Audio instead of Web Audio API, I'm not sure if this code could be directly applied to a script here..
After looking at the pre-release plugin videos, the way I'm envisioning for this plugin's options would be like this:
-First of all prepare 2 similarly named files in the music folder, for example Field1 & Field1B
-In Map Properties, if we place a <Crossfade BGM> notetag and Autoplay BGM is specified to Field1, when this map is loaded the script would load both Field1 & Field1B (filename + 'B'), connect both of them to the same node, and play both BGMs at the same time while muting Field1B
-When entering battle, BattleManager.playBattleBgm from rpg_managers.js would fade-off Field1 and fade-in Field1B instead of playing system's battle bgm
-When returning to map, AudioManager.replayBgm(this._mapBgm); would instead fade back to Field1
-If another BGM gets loaded due to moving to another map or set by events, the crossfade BGM & functions might need to be reset too
-Would be better too if there can be plugin parameters so that people can set the crossfade duration (I have maxValue & fadeFrame vars in my web code for example)
I wish I could actually make this script right now, but since I'm very new to RM I think it's better for me to learn RM as a whole for now. I hope I'll have enough exp to help adjusting scripts especially around the time someone finishes a tactical battle system plugin.
Last but not least, I've also attached a zip of my experiment of crossfading in webpage with Web Audio API, hope it can be of a reference. Thank you very much for considering this
bgmcrossfade.zip
Attachments
-
2.7 KB Views: 20
