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?
----------begin_max5_patcher---------- 642.3ocwV1zaaBCFG+L7ovBsCaRYLaCDfda6dklzNNUUY.2DuAFD3rk0p1O6 yuDRSRSLo40bvNXaL+e94+9w9IWGur54zNOvMfeBbbdx0wQ2jpAmEO63UQlm WR5zCyKutphxEdiL8InyE51yHs.FGb6OtouqFhHeJiO49VZtv7IRh8gi.3fD U03T8CPeH3tEuBqPOW0Y+5yA8SyC0bAmTQ0870VForuG9rJFujJzBC8Zi0yD 8sBWYR5XOpmDD1uu4lVZmLXHBVMeEYlZTVftBtn.bm5cd10UUL5Ho0299s13 TJR8QCv5pHjMNgOqb5.BYN8uRc8lHtgzI.XeKAMFpVX.HzXUUXrsnN5zXOP1 sGlQJ9WC0nPoImOw6fLB6fJz4MsfwP4OevW.e7CLjrJz+SVvDJRu6AGGooEN wFmBQWENcXL5gxZ4m0VnGpcHAHcLa.vNyejdRhb76Lxkw.Qtc+nrJypxns1v vXrI+jdiRDzJFfWELv3GKD199EAHCjYMGhlFHCTBBsl4753PzL4rvFVkcaSh IiQpgMVyuhSdmrAeZ28bXfg9HoH+kd88GR6RgSlIpmRKatufjaCQwgFDoOAJ pubqDZYl0x5bITV2erull2PfN1DtBwK+2ozgzPI+lT07B.M7wvlqpYOGKN9j 3R15oKH+nzHTRrcqxZzQKQuRFeyazpiRU6qirt5Ys48yW+sJ.uFoEzNAiqub 3JCRk1XkAMkUTP4qdGpJVQSsLA3BQriEv8USJFOnl1P3maMotUwfZJ3xxI0A cCpoMD9YesKYe3D7xpI0xBZHOdxZC5hnI39noKHm1GO9FaNGTSnj.+HYVUyc 1U43LOrQZL2mc+OWGNI9 -----------end_max5_patcher-----------
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.
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)
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.