Multiple Background Sounds

Multiple Background Sounds v1.00
By Arthran
​

Introduction
You can make your map sound windy. You can make your map sound like it's night time. You can make your map sound like it's rainy. But can you make your map sound like it's windy *and* rainy... at night? With this plugin, you can!

Features
Allows you to play multiple background sounds simultaneously.

How to Use
To play multiple background sounds simultaneously, use the "Play BGS" plugin command provided by this plugin. The default "Play BGS..." event command retains its default functionality (it will stop all active BGS before playing). I have also provided a "Stop BGS" plugin command, for a convenient way to stop all BGS.

If you prefer to use script calls instead of plugin commands, these are available to you:
JavaScript:
// Play a BGS. volume, pitch, and pan are optional
Arthran.MultiBgs.play("name", volume, pitch, pan);

// Stop all active BGS
Arthran.MultiBgs.stop();

Screenshots
Spoiler: Example Usage
1686987163312.png

Download
Here

Terms and Credits
  • Can be used in commercial and non-commercial projects.
  • Credit is not required, but is appreciated.
  • You may edit the plugin to suit your needs, so long as you do not claim ownership of the plugin.
  • Please do not distribute the plugin outside of your game.
Oh man. This is really useful. Definitely a lot nicer than layering stuff up in Audacity and clogging up your files with more data.
Does it also allow you to stop one of those sounds and keep the others going?
I mean if it stops raining but is still windy at night...
I think I'm going to have to experiment as I'm using Mush Audio Engine for proximity sounds. But if these two work together I shall be a very happy bunny.

Thank you for doing this.
Oh man. This is really useful. Definitely a lot nicer than layering stuff up in Audacity and clogging up your files with more data.
I'm glad you like it. I actually wrote an MV version of this a long time ago, to fulfill a request. If you're interested, you can find it here.

Does it also allow you to stop one of those sounds and keep the others going?
I mean if it stops raining but is still windy at night...
Good question! If you play the Rain BGS a second time (using the plugin command), with the volume set to 0, it will effectively stop it. But now that you've mentioned it, it would be a good idea to add an explicit command to stop individual sounds. I'll make sure to include that in the next update.

I think I'm going to have to experiment as I'm using Mush Audio Engine for proximity sounds. But if these two work together I shall be a very happy bunny.

Thank you for doing this.
No problem. I actually had never looked at Mush Audio Engine before, but it seems that that one already allows you to use multiple BGS, so I don't know if mine is really too useful in conjunction with it. That being said, if you're certain that you want to use the two together, please let me know if you run into any issues, and I'll try to look into it.
This plugin would be perfect if I could turn off the individual BGS that I create using this plugin. Unfortunately, when I leave a map, I need to turn off ALL BGS which ruins the continuity of the maps. If you add the ability to shut off the BGS individually, I would be greatly appreciative.
If you add the ability to shut off the BGS individually, I would be greatly appreciative.
From the post immediately above yours:
If you play the Rain BGS a second time (using the plugin command), with the volume set to 0, it will effectively stop it.
Did you try that? Or did you try the alternative plugin mentioned above?
god-sent plugin from you, saved my ass
i got an error saying "this._BGSEXOnSave is not iterable"

Original thread: https://forums.rpgmakerweb.com/threads/multiple-background-sounds.158414/