Detecting BPM from a metronome sample

Nov 20, 2011 at 1:22pm

Detecting BPM from a metronome sample

Hi I have a need to detect BPM from a metronome sample, I’ve made. The reason being it’s going into an app that has midi/OSC data out capabilities so I’ve come up with a work around.

So I’m making it play a 1 bar metronome sample, with the beep on the 1 being significantly louder. So I’m hoping to detect this louder beep and calculate BPM from it, I’m using this patch. If I test it at 125 it’s not always correct, it fluctuates roughly between 125.6 to 124.4. Is there anyway I can improve it’s accuracy?

– Pasted Max Patch, click to expand. –
#60122
Nov 20, 2011 at 2:19pm

You could try collecting several values with [zl group] and calculate the average with [zl median].
However, the response to tempo changes would then be delayed.

#216446
Nov 20, 2011 at 4:02pm

In the DSP status window, make sure “scheduler in overdrive” is checked. That gave me a steady 125. all the time.

(I used a Boss Dr. Beat metronome to test this)

#216447
Nov 22, 2011 at 11:39am

thanks for the tip

did you do this with my patch? I’ve not been able to obtain that accuracy even with said setting checked.

#216448

You must be logged in to reply to this topic.