# Musical transition and following progress bar

**URL:** <https://qa.fmod.com/t/musical-transition-and-following-progress-bar/17532>\
**Category:** FMOD Studio\
**Created:** [August 5, 2021, 4:26pm UTC](https://qa.fmod.com/t/musical-transition-and-following-progress-bar/17532 "2021-08-05T16:26:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Louca](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@Louca](https://qa.fmod.com/u/Louca)\
**Post date:** [August 5, 2021, 4:26pm UTC](https://qa.fmod.com/t/musical-transition-and-following-progress-bar/17532/1 "2021-08-05T16:26:32Z")

</div>

Hello everydoby. I’m actually trying to develop a game, I’m a begginer on fmod, and I have an issue. I’ve got a looping music, and a progress bar following the music. When the music is looping (cf. the first gif), it’s playing at the same time the end of the audio file and the beginning of the other, making transition (the orange/green part).

![fmod studio](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/2bd6abff280e74b9498d877fcb615555ff2c950c.gif)

The progress bar, whom referring to the music timing (as value) is calculating at the same time the begining of the music, but also the additional second of the transition. So, the display of the progres bar bugs and add all the adding time at once. It come back at its initial value without the transition value (cf. the second gif).

![fmod code](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/192b2220ee02e6fa9634ec0238361aced4cf7b14.gif)

Any idea how to resolve this ? Thanks in advance

---

<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:** [August 6, 2021, 11:08am UTC](https://qa.fmod.com/t/musical-transition-and-following-progress-bar/17532/2 "2021-08-06T11:08:25Z")

</div>

We’ll let the staff confirm, but for what I understood, transitions timelines are quite complex under the hood, so I guess you won’t be able to retrieve a relevant timeline position.  
You probably should program your own progress loop, with a resync at some point.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [August 9, 2021, 4:54am UTC](https://qa.fmod.com/t/musical-transition-and-following-progress-bar/17532/3 "2021-08-09T04:54:45Z")

</div>

Transition timelines, as mentioned, are quite complicated in how they actually work. They are essentially timelines that exist in the same place but somewhere else at the same time, as a means of keeping in time with what is happening on the main timeline. Therefore it isn’t as simple as summing up the current timeline and the transition timeline. Instead you might need to create your own function that simply times how long you have been playing the event and to reset it when it reaches the start of the loop1 marker.

---

<div class="post-metadata">

**Author:** ![Louca](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@Louca](https://qa.fmod.com/u/Louca)\
**Post date:** [August 12, 2021, 3:51pm UTC](https://qa.fmod.com/t/musical-transition-and-following-progress-bar/17532/4 "2021-08-12T15:51:31Z")

</div>

Ok, thanks for your response, I thought it was a fmod problem, because it is not designed for that.  
Thanks again for your answer.
