Answered
-1
0

Hey guys,

So I’m dealing with trying to set up a specific scenario in Fmod, and testing from the fmod side of things in the event editor this setup is not performing exactly as I’d like it to.

So in our game example we have a global music soundtrack that plays in 2D, but a specific ambience sound that is supposed to drop the music to -inf dB when a player enters an area via a mix snapshot.

Currently this itself is working as intended, and the event has the looping soundtrack for the ambience on one track, and a snapshot instrument on another track with a 4 second fade in set on the AHDSR of the snapshot instrument so when the player enters the area of said ambience, the bg music will fade away over 4 seconds.

However, upon exiting this ambient area, the release on the snapshot instrument’s AHDSR is set to 4 seconds as well, yet when exiting that area the global music just instantly pops back up to full volume.

I’m not sure why I can’t get the behaviour to function properly but I have a feeling as though its something rather simple that I’m missing or that is eluding me.

Anyone have any tips?

  • Jesse

    Also for some further clarification – the global music event also has an AHDSR setting right on the single sound instrument itself with a slow attack fade up as well, I think the issue though is that the event is continuing to loop even when the snapshot turns it down, so when it comes back, it just pops back in at full volume rather than fading back up.

  • You must to post comments
Great Answer
1
0

When an AHDSR modulator is placed on one of the properties of an instrument, the release period of that AHDSR modulator starts when that instrument is untriggered. When an AHDSR modulator is placed on one of the properties of an event, the release period of that AHDSR modulator starts when that event is stopped with fadeout. Stopping an event does not untrigger any of the instruments in that event. (If it did, an event with an AHDSR modulator on its master bus volume would normally fall silent immediately when stopped, instead of fading out gradually, due to its instruments all being untriggered at the same time.) This allows you to produce events with much more complex behavior than could otherwise be achieved.

A snapshot instrument is an instrument; thus, its release period begins when the instrument is untriggered, not when the event is stopped. If you want your snapshot’s release period to play out when the event is stopped, you must ensure that the snapshot is untriggered when the event is stopped.

The simplest way to do this is to play and stop the snapshot as an event in your game’s code, instead of through a snapshot instrument.

Alternatively, if your project requires snapshot instruments, you can ensure that each snapshot instrument is untriggered when the event is stopped by giving the snapshot instrument a parameter trigger condition, and placing an AHDSR modulator on the value of that parameter. Parameter values are event properties, so an AHDSR modulator on a parameter value does enter its release period when the event is stopped with fadeout.

  • Jesse

    Perfect, thanks for that Joesph! :)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.