🥁Visual & Audio Metronome (BPM) Documentation & Guide
📋How to Practice With the Metronome
- Set Tempo & Time Signature: Drag BPM slider (40–220) or pick a preset, then select 4/4, 3/4, 6/8, or 2/4 meter.
- Start Visual & Audio Beat: Click Start Metronome to hear synthesized high-pitch downbeat Beat 1 accents and lower off-beat clicks.
- Follow Beat Indicators: Watch pulsing beat indicators highlight 1-2-3-4 even if muted on stage.
⚙️Zero-Asset Oscillator Transient Click Engine▼
Synthesizes sharp percussive 45ms exponential-decay transients (`1100 Hz` downbeat accent vs `750 Hz` pulse) inside native Web Audio `AudioContext`, eliminating external WAV/MP3 loading lag.
📐Formula & Mathematical Architecture▼
e.g., 120 BPM = 500 ms per quarter-note beat
🧮Concrete Worked Examples▼
120 BPM, 4/4 Common Time500ms pulses with 1100Hz Beat 1 accent every 2.0 seconds60,000 / 120 = 500ms interval between quarter beats.
96 BPM, 3/4 Meter625ms pulse cycles cycling 1-2-3Highlights 'ONE-two-three' three-beat waltz bar structure cleanly.
⚠️Common Pitfalls & Edge Cases▼
- ⚠️Raising tempo prematurely before nailing clean note accuracy at slow speeds (e.g., 70–80 BPM).
- ⚠️Forgetting to check silent mode toggle on iOS/Android devices if hearing no Web Audio clicks.
- ⚠️Expecting browser `setTimeout` scheduling to match sample-accurate studio DAW MIDI clocks during 10-minute takes.
💡Music & Speaking Tempo Practice▼
- Gradually building guitar/piano passage speed cleanly from 72 BPM up to performance tempo.
- Practicing 3/4 waltz or 6/8 compound meter bar accents visually.