BPM Detector - Tap Tempo

Detect song BPM via microphone with real-time analysis. Includes tap-tempo fallback, manual entry, a confidence score and a live beat detection timeline.

Runs in your browser. No data leaves your device.

About this tool

A live BPM detector that listens to music through your microphone and estimates the tempo from kick-drum hits. It also offers tap tempo, manual BPM entry and a lock to freeze the reading. Use it to find the tempo of a song playing in the room.

Features
  • Microphone signal goes through a BiquadFilterNode lowpass at 200 Hz (Q 0.707) into an AnalyserNode (fftSize 512, no smoothing) to isolate the kick drum. A second AnalyserNode (fftSize 2048) feeds the waveform display
  • Every animation frame it computes the RMS of the filtered signal and flags a transient when the rise in RMS is more than 2x an adaptive baseline (exponential moving average) and above an absolute floor. Transients closer than 200 ms are ignored
  • Tempo estimation uses an inter-onset-interval histogram over the last 10 seconds of transients. Each onset is paired with up to 8 following onsets, votes are spread with a Gaussian (sigma 1.5 BPM), weighted by a log-Gaussian tempo prior centered on 120 BPM, and the peak is refined by parabolic interpolation. It needs at least 6 transients and updates once per second
  • Auto-detected tempos are limited to 50-200 BPM
  • Confidence percentage: compares the histogram peak with the strongest competing peak, gives a bonus when the result stays within 2 BPM of the previous one, and blends in a beat-alignment score (share of transients that land within 15% of a beat of the predicted grid)
  • Tap tempo: needs at least 4 taps, uses the median interval of the last 8 taps, and starts over if you pause more than 2 seconds. A tap result overrides auto-detection for 5 seconds after the last tap
  • Manual BPM box (20-300): press Enter to set the value, which also locks it. The Lock/Unlock button freezes or resumes auto-detection
  • Displays: a large BPM readout that flashes on each transient, a confidence bar, a live waveform, a scrolling beat-detection timeline (green kick level, red detected hits, blue predicted beat lines, with a legend under it), a count of kick hits heard and the share of hits on the predicted beat
  • Requests the microphone with echo cancellation, noise suppression and auto gain off; voice processing treats music as noise and flattens kick transients
How to use it
  1. Click Start Listening and allow microphone access
  2. Play music near the microphone. A tempo appears after a few kicks (at least 6 transients)
  3. If the reading is off, tap the beat with the Tap button or the spacebar (4+ taps), or type a BPM and press Enter
  4. Click Lock to freeze the current BPM, then Stop Listening when done
Inputs
  • Live microphone audio only (getUserMedia). There is no file upload
  • Taps (button or spacebar) and a typed BPM value
Outputs
  • On-screen BPM, confidence and beat-alignment percentages. There is no copy or export button
Limits and notes
  • Needs microphone permission and the Web Audio API. Shows an error if permission is denied or no microphone is found
  • Detection relies on low-frequency kick hits below about 200 Hz, so music without a clear kick drum may give no reading or a wrong one
  • Auto-detection range is 50-200 BPM. Tap tempo and manual entry can go outside it (manual entry accepts 20-300)
  • On phones, turning on the microphone may pause music playing from other apps on the same device. The page warns about this
  • Microphone audio is analyzed in memory and never sent anywhere. Nothing is saved, and the microphone tracks are stopped when you click Stop Listening or leave the page
Keyboard shortcuts
  • Space: tap tempo (only while listening; holding the key down does not repeat)
  • Enter (in the Manual BPM box): set and lock that BPM

Frequently Asked Questions

How does the BPM Detector work?

The microphone signal is routed through a Web Audio API BiquadFilter lowpass at 200 Hz to isolate the bass. An AnalyserNode reads time-domain data each frame, and the tool detects onsets by tracking energy spikes above a moving threshold. It builds an inter-onset interval histogram with Gaussian smoothing and a tempo prior to find the most likely BPM.

Can I set the BPM manually?

Yes. You can tap the beat with the Tap button or spacebar (4+ taps needed), type a BPM value directly, or let auto-detection find it. Lock the BPM to freeze detection.

Is my audio recorded or sent anywhere?

No. All processing happens entirely in your browser using the Web Audio API. No audio data is recorded, stored, or transmitted. The microphone stream is discarded when you stop listening.