I programmed this little jump and run in unreal engine 4 to implement my music in a game using FMOD.

I composed several short tracks and everyone of them has a certain probability that it will be played. This ensures that there is more variety in the music.
You can also handle certain events in the game with music clips and trigger them through the audio middleware FMOD.

Additionally all sound effects such as fireballs, hits etc are triggered through FMOD as well.