Hello,
It’s a simple beat detector.
Searches for beats in the sample and places a marker in its place.
The main word in it has a lowpass filter so it won’t find beats in higher frequencies (hi-hat and others).
It is prone to noise so the cleaner the sample the better
It’s just another option for zero crossing, but it’s more about something else.
With long samples, of course, detection ends at the 255 marker.
It’s just a toy, use at your own risk.
Version v0.02
The deletion of ‘slice marks’ is now automatic.
Fixed a gross error when ‘Trigger settings’ did not work at all!
Higher detection sensitivity set for release time.
Version v0.03
I’m still experimenting with setting the values.
I tried a compromise with the filter and made it more ‘highpass’, strangely enough
it works better in all types of sounds.
Version v0.04
I modified BeatDetector a bit.
I wanted to focus on better finding the beginning of the beat, for which I used zero-crossing.
I rewrote the entire detection.
I’m quite satisfied with the lower frequencies and haven’t tested much with the higher ones like hi-hats yet.
“Min beat spc” here you set the minimum distance between beats in s.
“Zero crs w” is the window size for searching for zero-crossing in s.
“Noise thresh” is the amplitude threshold for noise search