Project Nayuki


Tap to measure tempo (JavaScript)

Program

Quantity Simple Advanced
Number of beats:
Position:
Elapsed time:
Standard deviation:
Offset:
Correlation (r2):
Last deviation:
Period:
Tempo:
Controls:

Description

First, start playing a song. Then come back to this web page. On each beat, tap on any key on the keyboard, timed as accurately as possible. When there are no more beats to be counted, press the “Done” button. Press “Reset” to clear the results and start again.

This program uses linear regression to calculate the tempo based on the timing of your key presses. The source code is available for viewing.

More info