# Syncing in-game events with music bpm

**URL:** https://qa.fmod.com/t/syncing-in-game-events-with-music-bpm/21809
**Category:** FMOD Engine
**Created:** [June 27, 2024, 7:48am UTC](https://qa.fmod.com/t/syncing-in-game-events-with-music-bpm/21809 "2024-06-27T07:48:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![theconsoloist](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@theconsoloist](https://qa.fmod.com/u/theconsoloist)
#### Post date: [June 27, 2024, 7:48am UTC](https://qa.fmod.com/t/syncing-in-game-events-with-music-bpm/21809/1 "2024-06-27T07:48:27Z")

</div>

Hello there 😃

I want to subscribe game logic and UI animations to the bpm of a music track. What would be the best way to do this with FMOD?

Thanks for your help!

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [July 3, 2024, 3:06am UTC](https://qa.fmod.com/t/syncing-in-game-events-with-music-bpm/21809/2 "2024-07-03T03:06:23Z")

</div>

The best way to handle this is to use [event callbacks](https://www.fmod.com/docs/2.02/api/studio-guide.html#event-callbacks) with the Studio API, which will allow you to receive a callback on an event’s timeline reaching a beat and/or bar, based on the tempo set by [tempo markers](https://www.fmod.com/docs/2.02/studio/glossary.html#tempo-marker) in Studio.

Based on your posting history, you seem to be using Unity - our [Timeline Callbacks Unity scripting example](https://www.fmod.com/docs/2.02/unity/examples-timeline-callbacks.html) demonstrates how to do this with Unity. If you’re not using Unity, you can take a look at the “music\_callbacks” Studio API example included with the FMOD Engine installer instead.

---

<div class="post-metadata">

### Author: ![theconsoloist](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@theconsoloist](https://qa.fmod.com/u/theconsoloist)
#### Post date: [July 5, 2024, 7:33am UTC](https://qa.fmod.com/t/syncing-in-game-events-with-music-bpm/21809/3 "2024-07-05T07:33:16Z")

</div>

> [@Leah\_FMOD](#):
>
> music\_callbacks

Thanks for your reply! Sorry I forgot to mention it bur this is actually about Unreal Engine. Where can I find documentation on the music\_callbacks?

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [July 8, 2024, 12:02am UTC](https://qa.fmod.com/t/syncing-in-game-events-with-music-bpm/21809/4 "2024-07-08T00:02:50Z")

</div>

The music\_callbacks example isn’t Unreal specific, but can be found in the Studio API examples included with the [FMOD Engine installer](https://www.fmod.com/download#fmodengine), which are located in the install directory at “./api/studio/examples”. For Unreal-specific info, our [Unreal documentation on callbacks](https://www.fmod.com/docs/2.02/unreal/user-guide.html#callbacks) provides a brief guide on using timeline callbacks with Blueprints.
