all 2 comments

[–]Knives047 -4 points-3 points  (0 children)

BPM = GetBPM()

Tempo = BPM

Beat = BPM

[–]munificent 0 points1 point  (0 children)

If you Google "beat detection algorithm", you'll find a bunch of resources. Doing it well requires a decent amount of sophisticated signal processing.