Drum Practice Prototype

Click, pattern display and mic onset detection on one audio clock. Needs a microphone, and a secure (https) connection in order to reach it.

1 · Audio & latency calibration

Not started.
Speaker calibration plays a chirp and clicks and listens for them, so the sound must reach the mic: use the laptop speakers, not headphones, and keep quiet. It measures the true output-to-input delay and learns the click so it can be subtracted from your playing.
Tap calibration is the fallback for headphones: play one stroke on each of 16 clicks and it takes the median offset. That folds your own timing bias into the number, so it zeroes you against yourself rather than measuring the hardware.

2 · Practice

Pattern & hits

Notes played
–
Missed
–
Extra hits
–
Mean error
–
Jitter (SD)
–
Within ±20 ms
–
Positive error = late, negative = early. Stats cover the last 32 notes.

Timing error per note

Note trends

One column per note of the pattern. Dots are that note's last 24 results, oldest on the left, so a slope shows it drifting; the bar is their average, and a red mark on top is how often it was missed. Notes you are consistently early, late, missing or unsteady on are shaded here and ringed in the notation above.

Debug

Mic peak
–
Mic RMS
–
Sample rate
–
Reported out
–
Calibrated
–
Input side
–
Mic rate
–
Click removal
–
Live mic — raw input   after click removal   click expected here   detected hit
Onset detector — onset strength   threshold   detections
Calibration recording — what the mic captured (chirp sent, click sent)
Match strength vs delay — one sharp peak means the sound was found
Captured click response (100 ms) — this is what gets subtracted during practice
If the live mic trace is flat, nothing is reaching the mic at all — check the input device and raise Mic gain. If it shows your strokes but the match curve has no clear peak, the speaker sound is not reaching the mic: turn the volume up, unplug headphones, or use tap calibration.