The Physics of Lightning & Thunder: From High-Voltage Snap to Rolling Sub-Bass
When a stepped leader of ionized plasma connects a storm cloud to the ground, the return stroke heats the surrounding air channel to nearly 30,000 Kelvin (five times hotter than the surface of the sun) in less than 30 microseconds. This instantaneous superheating creates a cylindrical supersonic shockwave (`Mach 10+`) that rapidly decays within a few meters into an acoustic pressure wave we hear as thunder.
Thunder & Lightning Sound Mixer models the complete three-stage acoustic evolution of thunder in real time using the browser's Web Audio API—letting you dial in everything from a razor-sharp `0.2 km` overhead crack to a soothing, 8-second `10 km` mountain-valley rumble, with or without rain.
How to Control Lightning Strength, Thunder Distance & Rain
- Tap Anywhere on the Horizon to Call Down Lightning: Click or tap directly on the storm canvas (or press
Enter). Tapping high in the sky triggers a wide **cloud-to-cloud sheet lightning** arc; tapping on the mountain ridges or lake surface fires a branching **cloud-to-ground return stroke** at that exact spot. - Adjust Lightning Strength & Thunder Sub-Bass (Sliders #1 & #2): Raise Lightning Bolt Strength from `15%` (`30 kA` single thread) to `100%` (`200 kA` multi-forked superbolt). Adjust Thunder Strength & Sub-Bass to control the chest-thumping `32–95 Hz` acoustic power and multi-tap mountain echo tail.
- Scrub Strike Distance (0.2 km to 12.0 km): Moving Slider #3 closer (`0.2 km – 1.2 km`) emphasizes the brittle high-voltage leader snap (`1.5–3.8 kHz`). Moving it farther away (`4.0 km – 12.0 km`) filters out the sharp crack and stretches the thunder into a warm, low-frequency rolling rumble ideal for relaxation and sleep.
- Optional Rain or Pure Dry Thunder (Slider #5): Drag Optional Rain Mix to `0%` (or choose 3. Dry Heat-Lightning) when you want to hear pure, isolated thunderclaps with zero background rain, or raise it to `80%+` for a cozy midnight storm.
Acoustic Shockwave Attenuation & Flash-to-Bang Equations
Both the frequency roll-off with distance and the acoustic travel-time delay are computed from atmospheric physics:
t_delay(d_km) = (d_km × 1,000 m) ÷ 343 m/s ≈ 2.915 seconds per kilometer (4.69 s per mile)
2. Atmospheric Low-Pass Cutoff Frequency vs. Strike Distance d_km (Stokes-Kirchhoff Attenuation):
f_cutoff(d_km) = 120 Hz + 3,600 Hz × exp( -d_km ÷ 2.8 km )
3.Tortuous Channel Rumble Duration (Difference in Path Length from Top vs. Base of 6 km Bolt):
T_rumble(d_km) = 2.4 s + 0.52 s × d_km [Up to 8.6 seconds of rolling mountain echo]
Thunderstorm Distance, Peak Frequency & Acoustic Signature Chart
| Strike Distance | Physics Delay ($d / 343\text{ m/s}$) | Dominant Frequency Band | Acoustic Thunder Signature |
|---|---|---|---|
| 0.2 – 0.8 km (Overhead) | $0.6 – 2.3\text{ seconds}$ | $45\text{ Hz} – 3,800\text{ Hz}$ Full Spectrum | Sharp leader snap + explosive N-wave crack |
| 1.5 – 3.0 km (Close Valley) | $4.4 – 8.7\text{ seconds}$ | $38\text{ Hz} – 1,250\text{ Hz}$ Punchy Bass | Crisp initial clap followed by 4s rolling echo |
| 4.0 – 7.0 km (Mid Horizon) | $11.6 – 20.4\text{ seconds}$ | $32\text{ Hz} – 480\text{ Hz}$ Warm Rumble | Softened attack with deep multi-ridge reverberation |
| 8.0 – 12.0 km (Distant Storm) | $23.3 – 35.0\text{ seconds}$ | $28\text{ Hz} – 190\text{ Hz}$ Sub-Bass Only | Gentle, velvety 8-second horizon roll for deep sleep |