Hey Ladies and Gentlemen, I'm a Software Engineer Undergraduate. I'm trying to detect drum strokes(beats) in real-time in python. I used amplitude threshold-based onset detect (beat detect) algorithm but it takes other noises also onsets and it omits some actual beats with low amplitude. Can you have suggestions to optimize my code or another way to solve this?

  • 2
    This probably belongs on dsp.stackexchange.com . It's beyond the remit of sound designers.
    – Tetsujin
    Nov 2 '19 at 14:25
  • Thank You very much @Tetsujin😊
    – Asiri Amal
    Nov 2 '19 at 14:35
  • 1
    You probably need to investigate a cross-correlation method and rather than using sample level, look at using RMS integration across a short buffer length to determine beat location and level.
    – Mark
    Nov 3 '19 at 7:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.