Alright. I have a new script here that hopefully continues to work. I recorded an example of it working here.. In the video I have a bass drum and a hi hat cymbal playing on the down and up beats respectively. I am controlling the pitch of the music in real time.
The new Beat Tracker can be found here., Hopefully I didn’t leave any unnecessary code in there.
I’ve added two new functions for the Pitch, “SetPitch” and “GetPitch”, they do exactly what they sound like.
A few things to make sure you’re doing in your project:
- In FMOD, make sure your music event has “Persistent” set to ON, and “Priority” is highest.
- In FMOD, make sure “Streaming” is OFF on your audio file.
- In Unity, set “Run in Background” to ON, Edit > Project Settings > Resolution and Presentation > Run in Background.
I don’t think I forgot anything but let me know if it doesn’t work.