Is it possible to do beat detection?

Hey! Im making a 2.5d rythm game.
Is it possible to do automatic beat detection?

2 Likes

Yes, but it won’t be exact

You’d need to configure on what the average & possible BPM of your songs would be, using the PlaybackLoudness property in the Sound Object

Also there’s been a couple of other posts before this before:

PlaybackLoudness can be used to detect spikes in the summed amplitude of the sound, but it seemed a bit delayed last time I used it. I think Rhythm Track plays the audio ahead of time and uses PlaybackLoudness to position premade or formulaic patterns across the a, s, k, l, and spacebar keys.

Unfortunately there’s no way to read amplitude at specific frequencies on the spectrum so you can’t parse out sub tones to easily distinguish the song’s beats.

If you know the songs BPM ahead of time you can generate points based on that timing.