Dynamic music system done in FMOD
I've been working with an amazing musician [Rokas Danevičius](https://rokasdanevicius.com/) on a new music track to be implemented into the game. All music credit goes to him!
FMOD is handling all the music logic while Unity sends values to control the intensity of the music. We have three phases of intensity:
- Low
- Medium
- High
Right now, these phases are controlled by the time left in the race. The engine calculates a percentage value of how much time is remaining and passes it to the middleware, which determines which parts should be played.
Each block of every phase has at least two loops that change randomly.
At the change points—33% and 66% marks—a transition plays. These transitions are also composed differently to ensure that when you move from a higher phase to a lower phase, it transitions smoothly to a less energetic part.
Additionally, there will be an outro based on the score, indicating whether the race was won or lost, but this is still in progress.