The Psychoacoustics of Stereophonic Imaging & Pan Law Mathematics
Human stereophonic perception relies on the auditory system's ability to decode subtle acoustic disparities between sound waves arriving at the left and right eardrums. In acoustic science, these are classified as Interaural Time Differences (ITD)—the microsecond arrival delay caused by head width—and Interaural Level Differences (ILD)—the acoustic shadow cast by the skull that attenuates high frequencies on the far side.
Stereophonic audio production reproduces this phantom spatial stage using two discrete channels (Left and Right). By manipulating the relative gain and phase relationships between these channels, sound engineers position phantom acoustic sources anywhere across the virtual soundstage.
Equal-Power Panning Law Mathematics
A common mistake in rudimentary audio software is using linear panning: when panning from Left to Right, linearly decreasing the Left gain (1 - p) while increasing Right gain (p). In physical acoustic spaces, two correlated sound sources summing acoustically in the room produce an apparent volume drop in the center (known as the "center hole" dip of 3 dB).
2ClickKit utilizes the mathematically rigorous Equal-Power Sine-Cosine Pan Law implemented in the Web Audio StereoPannerNode:
x = (pan + 1) / 2 (where pan ∈ [-1.0, +1.0], so x ∈ [0.0, 1.0]) Gain_Left = cos(x · π / 2) Gain_Right = sin(x · π / 2) Total_Power = (Gain_Left)^2 + (Gain_Right)^2 = cos^2 + sin^2 = 1.0 (Constant Acoustic Power)
When pan = 0.0 (center):
Gain_Left = cos(π/4) = 1 / √2 ≈ 0.7071 (-3.01 dB)
Gain_Right = sin(π/4) = 1 / √2 ≈ 0.7071 (-3.01 dB)
This maintains identical acoustic perceived loudness whether a sound is panned hard left, dead center, or hard right.
| Pan Position | Left Gain (Linear) | Right Gain (Linear) | Left Gain (dB) | Right Gain (dB) | Acoustic Image |
|---|---|---|---|---|---|
| Full Left (-1.0) | 1.0000 | 0.0000 | 0.0 dB | -∞ dB (Muted) | 100% Left Ear Only |
| Mid-Left (-0.5) | 0.9239 | 0.3827 | -0.69 dB | -8.34 dB | Left of Center Stage |
| Dead Center (0.0) | 0.7071 | 0.7071 | -3.01 dB | -3.01 dB | Phantom Center (Mono) |
| Mid-Right (+0.5) | 0.3827 | 0.9239 | -8.34 dB | -0.69 dB | Right of Center Stage |
| Full Right (+1.0) | 0.0000 | 1.0000 | -∞ dB (Muted) | 0.0 dB | 100% Right Ear Only |
Phase Inversion & Destructive Interference Applications
When two identical acoustic waveforms of opposite polarity are summed together, the positive crest of wave A meets the negative trough of wave B at every single point in time:
x_sum[n] = x_Left[n] + (-1 · x_Right[n]) = 0.0 (Total Destructive Cancellation) This fundamental acoustic phenomenon unlocks powerful studio audio workflows:
- Vocal Extraction & Karaoke Isolation: Lead vocals and bass drums are almost universally mixed dead center (identical in both L and R channels). Inverting the phase of the Right channel and summing to mono causes the center elements to cancel out, leaving the stereo-panned guitars, reverb tails, and synths isolated.
- Fixing Out-of-Phase Stereo Microphones: When recording an acoustic guitar or drum kit with two microphones, improper capsule placement can cause phase cancellation, making the recording sound thin, hollow, and lacking bass. Inverting the phase of one channel instantly restores thick low-end punch.
- Mono Compatibility Verification: Many commercial club PA systems, Bluetooth speakers, and smartphones sum stereo audio to mono. Activating the Mono Downmix toggle lets mixing engineers detect phase cancellation issues before release.
Common Professional Use Cases
- Fixing One-Sided Video Interviews: Lavaliere microphones plugged into stereo DSLR camera inputs often record speech exclusively to the Left channel, leaving the Right channel dead silent. Panning and mono-downmixing brings the voice into natural center balance.
- Channel Swap for Video Editing: If an action camera or stereo recorder was mounted upside down or backward, the audio will be reversed (a car driving left-to-right on screen sounds like it is driving right-to-left). Swapping channels aligns sound effects with video visuals.
- Hearing Balance Accommodation: Listeners with asymmetrical hearing loss can bias audio towards one ear to enjoy balanced podcasts and music without strain.