[RELEASED] Script to create interactive/adaptive background music

Hi Unity Devs!
I’ve just finished coding a script to help developers make interactive/adaptive background music for their video games. Don’t know if this has been done before by another dev… If you have any suggestions or ways to make it work better, don’t hesitate! I’m a self-taught coder so I really don’t know what I’m doing… :stuck_out_tongue:
Here is the demo video, and the script should be available for download soon on the Unity Asset Store (for free).
(submitted today for update)

LINK TO THE SAMPLE PACKAGE ON THE UNITY ASSETSTORE:

Hello there ! Thanks for the freebie ! This is so Amazing !

Very moody music, looks like final fantasy jrpgs much alike…

I have here a request for your script, if you allow me.

Some Ideas for Random Music by 3d Location Within a Scene Level.

I would like to use this smooth transitions in our scenes…

But instead the event be by key presing …

Would be amazing if we can Make the music change according the player location in the scenery…

Lets say we have a cave …
So in that cave i would put a prefab with your script, and entering the cave, the music would start to play from very faded volume … near the cave, to at some spot were the prefab is playing continuously a set of random loops asigned to that prefab … so the music play seamless, but is never the same … imagine the player goes out of the cave and enters again … the sound never sounds exactly the same… because of the random seamless loops transitions asigned to that prefab…
And that would be a simple empty object… or two or 3spheres that would indicate, the distance the random seamless loops play and fade from that position in the scene …
Then there should be triggers … lets say inside the cave there is somewhere a treasure chest …
The random seamless loops play as the cave usual, but the player hits the chest, and the cave music fades to a certain degree we can assign lets say the cave music goes to 10% volume, and the random seamless loop for the chest opening starts … then fades away wille the cave music continues…
Then the player leaves the cave and enter a temple …
And there is another random seamless ambient music prefab , that the closer the player gets, the cave music fades its volume, and gradually starts to play lowder the random music loops from the temple…
Now imagine a whole enviroment like this …
Were are random seamless music loops everywhere …
And they fade away their volume according the player position to harmonically orchestrate with each others … making the player do its own soundtrack…
As we could assign many loops to random play to each prefab location, visiting a location would never become boring …
And the events like open a chest or talking with a Npc would give it the grand final touch…

I think everyone would love such for free.

But if you get into it, you can make a great extension and sell alot ^^

Thanks so much for you gift.
Keep Ruling !

Have a wonderfully happy prosperous 2015 !

RUBEN
/ A3D Studio

You must have read my mind, I’m working on that right now… :slight_smile:
That’s my next release!
Randomized music that will be original everytime you reload a level!
You can subscribe to my Youtube or follow me on Twitter or whatever so you know when it will be released…
It won’t be for free thought… Too much hours of work went into that! :stuck_out_tongue:
But I’ll see if I can do an “introductory” price! :wink:

1 Like

Hi everyone!
The package has been updated today!
Check out the new samples and the script to help you create interactive/adaptive music for your game!