# [sdiy] Tap tempo question

Kylee Kennedy kmkennedy at gmail.com
Wed Feb 3 22:25:07 CET 2021

```In my small testing with an audio delay idea on Teensy. I sometimes would
goof on the first two taps either rushing or hesitating to really hit that
first one on the beat I was listening to.
So I programmed it to not accept a super fast tempo and listen to the last
two steps after waiting a step or two. I usually tap four times to set
tempo.

Great thread, Let us know what solution you end up with.

Kylee

On Wed, Feb 3, 2021 at 12:40 PM Ingo Debus <igg.debus at gmail.com> wrote:

>
> > Am 02.02.2021 um 22:30 schrieb Mattias Rickardsson <mr at analogue.org>:
> >
> > Averaging might seem like a good idea to find the tempo, but if you just
> average a number of periods between consecutive pairs of taps, the end
> result only depends on the timing of the first and the last tap. The
> timings of all intermediate taps get thrown away in the calculation since
> they are first added (as one end of a period) and then subtracted (as the
> other end of next period).
> >
> > (If taps occur at times A, B, C, D, E
> > then the measured periods are B-A, C-B, D-C, E-D.
> > The average of these periods are (B-A + C-B + D-C + E-D) / 4
> > which equals (E-A) / 4
> > meaning the total time between the first and last taps, divided by the
> number of periods tapped in between.)
>
> Hehehe…
> At least you have to know how many taps occurred between the first and the
> last tap. Or how else can you know that you have to divide by 4?
>
> Anyway, all this only makes sense if the tempo is constant throughout the
> whole piece. I believe the idea of tap tempo (opposed to adjusting the
> tempo with a knob) is, that it’s easier to follow „human“ (i. e. varying)
> tempo.
>
> Ingo
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20210203/17a4cec1/attachment.htm>
```