nostra
New Member
Posts: 2
Posts: 2
|
Post by nostra on Jul 4, 2016 9:24:48 GMT
Hello !
I'm new to Master Audio and I want to know if there is a good way to handle layered music with variations :
Let me explain, I have 4 layers of music, the first 3 layers works the same way :
Intro -> main track ( loop X time ) -> Transition to variation 1 -> Variation 1 ( loop x time ) -> Transition to main track -> main track ( loop x time) -> ...
The 4th layer has a different behaviour, it is composed of two sets of 4 tracks :
random track from the first set -> random track from the second set -> random track from the first set -> ...
Currently I use 4 playlist controllers and some FSM to handle this behaviours, so I just want to know if there is an other way to handle this ?
|
|
|
Post by DarkTonic Dev on Jul 4, 2016 17:25:20 GMT
I assume you're asking about layer 4, the rest doesn't need any coding or FSM.
There's no way to do layer 4 out of the box, no.
|
|
nostra
New Member
Posts: 2
Posts: 2
|
Post by nostra on Jul 6, 2016 15:17:19 GMT
Sorry I think my first post was not clear at all, so I will try to explain what I want to do.
In the game I work on, the music is affect by what happen to the player, for example if there is a happy moment, the music should reflect this moment. To simulate this behaviour I have several track, each one represent an emotion.
Let's take for example the first layer :
For this layer I had x tracks of 14 seconds, these tracks are divided into differents categories :
-one track is an intro (always play once at the beginning of the level when the music start ) -one track is the main track ( play after the intro and loop )
Then I have X variations of the main track, each variation represent an emotion and is trigger by some in game event. Each variation is divided in 3 tracks:
- a transition track from main track to variation x (play only once before the variation) - a variation track ( play after the previous transition and loop until the end of the in game event ) - a transition track from variation x to main track ( play only once after the variation end )
To achieve this I put all the tracks in a playlist with the following parameters ( synchronize clips and auto advance clips) and I write an FSM to control this playlist. The FSM use the QueuePlaylistClip function to break loop and play the next song.
So all of my 3 layers work like this and I just wanted to know if there is a better way to handle this kind of behaviour.
Thank you for your time.
|
|
|
Post by DarkTonic Dev on Jul 6, 2016 16:01:13 GMT
Yes using the queue method is good if you want to wait until end of current song to change.
|
|