Disclaimer: I tried to comment the code as best I can but I also have no idea what I’m doing, so I apologize for any messy or weird code.
Anyways, here is the beat tracker script!
It works with transitions and tempo changes as far as I can tell.
VERY IMPORTANT: In FMOD Studio, you HAVE to set up your tempo markers properly for it to work, it’s entirely dependent on the tempo markers and regular markers. Any time the song reaches a tempo or regular marker, it will check/correct the timing of the beat. So if those are not on beat, the rest of the game won’t be either.
If you have any questions, feel free to ask!