Last Strike: 2.4 km · 140 kA Bolt Thunder Acoustic: 68 Hz Rolling Bass Wave Delay: Instant Audio
Your browser supports HTML5 Canvas to render branching fractal lightning bolts, glowing storm clouds, lake reflections, and sonic shockwaves.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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:

1. Speed-of-Sound Flash-to-Bang Travel Delay (c_air ≈ 343 m/s at 20°C):
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

Explore more verified interactive sound studios and instruments in the Gemsmakers Music Studio:

Frequently Asked Questions

1. How does strike distance change the sound of thunder in this simulator?
When lightning strikes close (0.2 to 1.5 km), you hear a sharp, high-frequency electrical snap (1,200–3,800 Hz) followed immediately by an explosive shockwave. As strike distance increases toward 10 km, atmospheric absorption filters out the high frequencies while multi-path reflections off clouds and mountain ridges stretch the sound into a deep, soothing sub-bass rumble (32–110 Hz).
2. Can I play pure thunder and lightning sounds with zero rain?
Yes. Set the Optional Rain Mix slider to 0% (or click the Dry Heat-Lightning preset) to experience pure electrical lightning bolts and deep rolling thunder in complete silence between strikes.
3. How does the realistic flash-to-bang delay work?
Light travels almost instantaneously (300,000 km/s), whereas sound travels through air at approximately 343 meters per second (about 2.9 seconds per kilometer). When Physics Delay is enabled, the thunder audio arrives after the exact acoustic travel time for your selected distance, or you can keep Instant Thunder mode active for immediate audio feedback.
4. How do I trigger lightning bolts manually?
Click or tap anywhere on the storm canvas—or press the Enter key—to call down a branching fractal lightning bolt at that exact coordinate, complete with cloud illumination, lake water reflection, and multi-layered 3D thunder.
5. Why doesn't the screen flash harsh white during lightning strikes?
To protect eye comfort in dark rooms and prevent mobile screen flicker, the visualizer uses an opaque hardware-backed canvas ({ alpha: false }) and illuminates the clouds and lake with soft, atmospheric amethyst, cyan, gold, and indigo plasma gradients rather than full-screen white flashes.