Rythm and markers inside the event

I am trying to make a rhythmic game and one of the biggest challenges I’m having is trying to find out how to know exactly when the Drums will make a certain beat. I was wondering if there was a way for me to mark inside the event certain areas where a variable is changed or something like that so I could use it inside unity to determine if the player hit the button at the same time said variable was “true”. I’m 100% open to suggestions.

Hi,
That could work as you say, by using 2 command instruments to set a boolean parameter in the timeline. But if you want a more systematic way, it’s by using FMOD_STUDIO_EVENT_CALLBACK_TIMELINE_MARKER or FMOD_STUDIO_EVENT_CALLBACK_TIMELINE_BEAT

Hey! Thanks for the reply!! I’m sorry if I’m asking for too much, but how can I implement the first idea using the command instrument?

Very simple, you create a discrete parameter taking {0,1} values, create a command instrument where you want that sets the parameter on 1, then another that sets it on 0.

Got it. Thank you very much !! <3