[sdiy] Tap tempo question

Didier Leplae didierleplae at yahoo.com
Wed Feb 3 22:20:27 CET 2021


My programming skills are rudimentary at best, but I’m very interested in the low pass filtering concept and will look into to it. Thanks!

> On Feb 2, 2021, at 8:03 PM, Brian Willoughby <brianw at audiobanshee.com> wrote:
> 
> 
> 
>> On Feb 2, 2021, at 02:59, Tom Wiltshire wrote:
>> Averaging makes some sense where you’ve got a human tapping, and Brian is right that weighted averages are a good idea to give more recent times more importance. Rather than doing hard sums, on a PIC it makes sense to do this weighting by using bit shifts (so choose from weights of 1, 0.5, 0.25, or 0.125!!).
> 
> A low-pass filter with a coefficient of 0.5 would automatically create that weighted series (1, 0.5, 0.25, 0.125). It wouldn't even be necessary to store the last four values because the filter state would already have them summed.
> 
> It would probably be helpful to compare the latest period against the slowest tempo, and if it's even longer than that then just zero-out the filter state to reset. Of course, don't use the filter output if it's zero. Instead, just leave the tempo at the latest setting.
> 
> Brian Willoughby
> 
> 
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org





More information about the Synth-diy mailing list