getting rough BPM of AudioClip

Hi everyone,

Just a quick question for a potential idea that I have, how would I get the BPM of a song that a user loads into a game?

It doesn’t have to be exactly beat perfect as I know that is near impossible to get unless the songs were prebuilt into the game, but just a rough guesstimation of the BPM of the currently played song.

Alot of the answers on here are just saying “You can’t do it” but i’m just wondering if that’s just because the user asking the question is looking for BPM perfection.

I came across a question like this before from @SgtPancakes Beat detection algorithm - Unity Answers

Yo I think this is what you’re looking for GitHub - WestHillApps/UniBpmAnalyzer: BPM analyzer for Unity.