BPM Tap Counter Logo
BPM TAPCOUNTER
MODULE // 01•ENGINEERING OVERVIEW
REV 2.0 // STABLE

Precision Studio Hardware, Rebuilt for the Browser

Online tap tempo counters have historically been weighed down by bloated tracking scripts, blinding white screens, intrusive banner ads, and sluggish timer loops that drift off-beat.BPM Tap Counter was engineered from the ground up as a zero-bloat, studio-grade hardware instrument for audio engineers, music producers, DJs, and live musicians.

CLOCK PRECISION
±0.1 ms
performance.now()
AUDIO LATENCY
< 5 ms
Native Web Audio
ADS & TRACKERS
0.00 %
Pure Utility
DSP EXECUTION
100 %
Local Client-Side
■THREE ARCHITECTURAL PILLARS
PILLAR 01DSP ENGINE

Zero-Latency Web Audio

Traditional web metronomes load remote MP3 or WAV audio clips over the network, causing audible lag and browser audio queue stutters. We synthesize instant sine-wave metronome blips directly inside the Web Audio API audio graph (800Hz primary accent, 400Hz subdivisions) with sub-millisecond exponential gain decay.

// SYNTHESIZED OSCILLATOR GRAPH
PILLAR 02ALGORITHM

Rolling Median Buffer

Human fingers naturally introduce micro-jitter between individual taps. Our algorithm computes inter-onset intervals (IOI) inside a sliding circular buffer. Statistical outlier rejection discards accidental double-taps or pauses, calculating a rock-solid, jitter-free BPM readout in as few as three taps.

// IOI VARIANCE REJECTION
PILLAR 03HARDWARE UX

Obsidian Studio Rack UI

Inspired by Teenage Engineering, classic SSL rack consoles, and analog master clocks. Deep obsidian canvases (#090A0F), hairline borders (#1F2433), and tabular monospace numerals prevent layout jumping during rapid tapping. High-contrast phosphor emerald accents remain crisp in dark DJ booths and dim mixing stages.

// TABULAR MONOSPACE CANVAS
DEEP DIVE // ALGORITHMIC FORMULATIONMATH & SIGNAL LOGIC

How the Buffer Resolves Human Drift

When a musician taps their finger, every tap timestamp t_k is captured using high-resolution hardware timestamps (performance.now()). The delta interval between consecutive taps is:

// Inter-Onset Interval (IOI) in Milliseconds
Δt_k = t_k - t_(k-1)
If Δt_k > 2,500ms (timeout threshold), the buffer resets automatically.

Raw deltas are sorted and filtered to eliminate extreme tempo spikes before computing the harmonized tempo:

// Instantaneous BPM Calculation
BPM = 60,000 / Median(Δt_1, Δt_2, ... Δt_N)
Where N is clamped between 4 and 16 taps to ensure prompt responsiveness to tempo changes while smoothing out finger jitter.
TERMINAL MONITOR // DSP RUNTIMELIVE
$ tap_engine --monitor --precision=high
[TAP #01] t=0.000ms | Buffer: Initializing...
[TAP #02] t=483.820ms | Δt=483.8ms | Est: 124.0 BPM
[TAP #03] t=968.100ms | Δt=484.3ms | Est: 123.9 BPM
[TAP #04] t=1451.900ms | Δt=483.8ms | Confirmed: 124.0 BPM
VARIANCE: 0.04%STATE: LOCKED
TECHNICAL SPECIFICATION SHEETSTANDARDS & HARDWARE SPECS
PARAMETERSPECIFICATIONMETHODOLOGY / HARDWARE IMPLEMENTATION
Timer Resolution±0.1 msW3C High Resolution Time API (performance.now)
Audio SynthesisWeb Audio APIOscillatorNode sine pulse @ 800Hz/400Hz, exponential decay
Buffer Window16-Tap CircularFirst-in, first-out sliding interval array with median averaging
Input TriggersTouch, Mouse, KeyPointerEvents with passive touch listeners + Spacebar keydown
Haptic Feedback12ms Impulsenavigator.vibrate API (supported mobile devices)
Privacy FootprintZero TrackingNo cookies, no local database, no telemetry, no ad scripts