๐Audio Frequency & Tone Generator (Hz) Documentation & Guide
๐How to Test Speakers, Acoustics & Ears
- Pick Frequency & Waveform: Type any Hz value (e.g., 440 Hz Concert A or 60 Hz Sub-Bass) or click a speaker preset.
- Select Stereo Channel: Route test signal to Center, Left Speaker Only (-1), or Right Speaker Only (+1).
- Play & Adjust Live: Click Play Tone and tweak frequency/gain smoothly while active, then click Stop Tone.
โ๏ธWeb Audio `OscillatorNode` & `StereoPannerNode` Synthesisโผ
Generates continuous sample-accurate waveforms directly in native browser audio threads without compressed MP3 files or quantization noise, scaled safely through a gain limiter (`max 0.6`).
๐Formula & Mathematical Architectureโผ
๐งฎConcrete Worked Examplesโผ
440 Hz Sine, Stereo CenterPure steady A4 reference tone440 Hz ISO 16 pitch reference matches standard pianos and guitars.
1000 Hz Sine, Pan = -1 (Left)Clean tone audible strictly in left earcupVerifies balanced left channel output before verifying Right (+1).
โ ๏ธCommon Pitfalls & Edge Casesโผ
- โ ๏ธTesting 1โ4 kHz Square waves at maximum computer headphone volume (always start at low ~20% gain!).
- โ ๏ธTesting 20 Hz tones on tiny phone speakers expecting audible bass (small phone drivers cannot physically reproduce <120 Hz cleanly).
- โ ๏ธForgetting to verify mono accessibility toggle isn't enabled in OS settings during L/R pan checks.
๐กAudio Diagnostics & Tuningโผ
- Checking left/right stereo wiring accuracy on new headphones, earbuds, or desk speakers.
- Locating cabinet rattle resonance in home theater subwoofers between 35 Hz and 90 Hz.