Automate parameter values over the timeline

#1

I’m making an interactive piece of music, where the player can choose what line is sung after the current one. The pieces of music are all in one event because I need the smooth transitions.
Now I’d like to pass out to Unity which line is currently playing. For example when I’m at line 3 I’d like to have a parameter that’s at three and that I can pick up from Unity.
Is it possible to automate a parameter over the timeline? Or are there other things I can try to pass the information out to Unity?

0 Likes

#2

You can automate parameters over the timeline. Right click on the parameter dial in the event editor and select “Add Automation”.

https://www.fmod.com/resources/documentation-studio?version=2.0&page=authoring-events.html#automation-and-modulation

It depends entirely on how you have your event set up. You can use callbacks to see passed destination markers, or instruments or audio assets (the audio file) that have been triggered. Setting up callbacks does take a bit of time but is very useful.

https://www.fmod.com/resources/documentation-api?version=2.0&page=studio-api-eventinstance.html#fmod_studio_event_callback

However if you’re using event instruments, callbacks can’t propagate from nested events. In which case, an automated parameter and using getParameterByName would also work.

0 Likes