# What do I need to do in FMOD, so Unity can know if a button is pressed on a musical beat?

**URL:** https://qa.fmod.com/t/what-do-i-need-to-do-in-fmod-so-unity-can-know-if-a-button-is-pressed-on-a-musical-beat/19560
**Category:** FMOD Studio
**Created:** [November 22, 2022, 5:49am UTC](https://qa.fmod.com/t/what-do-i-need-to-do-in-fmod-so-unity-can-know-if-a-button-is-pressed-on-a-musical-beat/19560 "2022-11-22T05:49:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [November 22, 2022, 5:49am UTC](https://qa.fmod.com/t/what-do-i-need-to-do-in-fmod-so-unity-can-know-if-a-button-is-pressed-on-a-musical-beat/19560/1 "2022-11-22T05:49:37Z")

</div>

So, let’s say the player needs to hit a button right on a beat, like guitar hero for example.  
Every song has a different BPM, so I assume that Unity will need to use FMOD’s BPM/TEMPO grid in some way?

What’s the best way to accomplish this? I know Unity can register markers in FMOD. Can it simply use the timeline/beats/bmp somehow? OR will I need to create a marker on every single beat? lol

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [November 22, 2022, 12:59pm UTC](https://qa.fmod.com/t/what-do-i-need-to-do-in-fmod-so-unity-can-know-if-a-button-is-pressed-on-a-musical-beat/19560/2 "2022-11-22T12:59:43Z")

</div>

> [@fractanimal](#):
>
> I know Unity can register markers in FMOD. Can it simply use the timeline/beats/bmp somehow?

Yes, this is called “callbacks”.
