Page 1 of 1

Beat detection

Posted: Sun Feb 13, 2022 5:58 pm
by Martin Verlaan
Has anyone here coded a beat detector in Purebasic? I tried by myself with the BASS library from Un4seen, but it's too difficult for me. I tried also their beat detection function in BASS-FX, but it's very inaccurate. I found some open source solutions, but they are mostly in Python. All I need is a function that create a list with accurate beat positions of a song (I don't need real time beat detection). Looking for years for this, so if anyone can point me in the right direction, I would be very grateful.

Martin

Re: Beat detection

Posted: Sun Feb 13, 2022 7:23 pm
by NicTheQuick
I had a course in university which did exactly this. Maybe I can find something. But in any case you should be firm in mathematics.

Re: Beat detection

Posted: Sun Feb 13, 2022 8:52 pm
by idle
Does that lib have a vu while playing if it does you could threshold that into a ring buffer then fft those impulse samples it will take it a while to kick in but then it should track ok. You can find fft on rhe forum I will post link later