Learntrix
⏱️ Hardware Lookahead Sample-Accurate Timing

Pro Online Metronome & Tap Tempo Studio

Sample-accurate audio scheduling eliminates JavaScript event loop drift. Supports 20–300 BPM, visual pendulum swing, subdivisions, and tap tempo detector.

120Beats Per Minute
Allegro (Fast & Bright)
20 BPM (Largo)120 BPM (Moderato)300 BPM (Presto)
1Accent
2Beat
3Beat
4Beat
Volume:80%

How Sample-Accurate Web Audio Scheduling Prevents Timer Drift

Standard web timer functions like setInterval() and setTimeout() are notoriously unreliable for musical applications. Because JavaScript runs on a single event-driven execution thread, any DOM manipulation, garbage collection cycle, or inactive background browser tab can delay scheduled timers by dozens of milliseconds, causing the metronome to stutter and lose sync.

Lookahead Scheduler

A tight 25ms timer queries audioCtx.currentTime and queues all clicks occurring within the next 100 milliseconds directly onto the audio hardware subsystem.

Tap Tempo Averaging

Calculates the harmonic average of tap timestamps across a rolling 3-second window, rejecting outliers to provide instant tempo discovery for any song or rhythm.

Concert Pitch Tuning

Pure sine wave synthesis at exact international concert pitch A4 = 440 Hz (standard ISO 16) and Verdi tuning A4 = 432 Hz for quick acoustic string calibration.

Interactive Musical Instruments & Studio

All Instruments
LIVE

Virtual Studio Piano & Synthesizer

Play 2 full octaves of realistic grand piano, rhodes, and 8-bit chiptune with your computer keyboard or touch. Record melodies live with low-latency Web Audio.

Launch Studio
LIVE

Virtual Drum Kit & Beat Machine

100% native synthesized acoustic drum kit and 16-step beat sequencer. Play kick, snare, hi-hats, toms, and crash cymbals with your keyboard.

Launch Studio
LIVE

Interactive Guitar Tuner & Pitch Detector

Tune acoustic, electric, and bass guitars with client-side microphone pitch detection using autocorrelation, plus reference pitch synthesizer.

Launch Studio
Want classic games? Play Flappy Bird, Snake, Chess, and 16+ browser arcade hits.Explore Arcade