FMOD 2.03.04 - Having music loop after randomized delay

Hello!

We’re running a custom implementation of FMOD in our own custom engine. It’s finally finished and now I’m going through and learning Studio, which thankfully, so far, has been fairly straight forward. However I’ve ran into a problem that I can’t seem to find an exact answer for online, since it seems that there seems to be a lot of variability between FMOD versions.

Here is the problem: I’m trying to design a looping music event in FMOD Studio. The catch is that I don’t want it to keep looping right away, but rather configure the sound to only loop every now and then. EG The music plays to completion → waits for a randomized amount of time based on a min and max wait time I set → The music starts again, possibly even choosing a different track to play based on whether it’s day or night.

If you provide an answer, screenshots/visual aids would be greatly appreciated!!

Thank you for your time. FMOD’s been really awesome so far!

The easiest way to do this is to add a silence instrument to the playlist of a multi instrument, and add a random modulator to the silence instrument’s duration so that the duration of the silence is randomized within a range each time the silence begins.

Then, all you’d need to do is set the multi instrument’s playlist selection mode to one of the sequential modes and set it to loop infinitely.

The disadvantage of this method is that the maximum duration of the silence instrument is only 60 seconds, so if you want a longer silence you’d either need to use multiple silence instruments or a different method using timeline logic.