BPM detection from MIDI playing in real time
Hello everyone,
I've spent the last couple of days trying to set up a BPM detection from MIDI playing. It somehow works, based on the idea of checking time distances between last notes played. I'm searching ways to improve it, as well as share it for anyone who wants to test it :)
I'm not so good at maths, I've been reading about using autocorrelation here, but what I have is an array of discrete timed "occurences" and I could not figure out how to apply it.
If anyone wants to check it: https://www.dropbox.com/s/o540pximmgavz56/bpm%20detect%200.3.maxpat?dl=0
Anyone has any idea on how to make it more stable or faster?
bpm detect 0.3.maxpat
Max Patch