What you are seeing
Sound is a longitudinal wave. The speaker cone pushes and pulls the air, so the particles bunch up (compressions) and spread out (rarefactions). Watch the red particle: it only wobbles back and forth around its starting place. The energy travels across the screen, not the air itself.
Wave speed (m/s) = frequency (Hz) × wavelength (m). A higher frequency means a higher pitch and a shorter wavelength. A bigger amplitude means a louder sound.
Controls
What you are seeing
Light is a transverse electromagnetic wave: electric and magnetic fields vibrate at right angles to the direction of travel. It needs no particles, so it crosses empty space at c = 300 000 000 m/s.
When light enters water or glass it slows down. The frequency stays the same, so the wavelength gets shorter — watch the wave squeeze inside the block.
Controls
Light and sound side by side
| 💡 Light | 🔊 Sound | |
|---|---|---|
| Type of wave | Transverse (electromagnetic) | Longitudinal (mechanical) |
| Needs a medium? | No — crosses empty space | Yes — no sound in a vacuum |
| Speed in air | 300 000 000 m/s | 343 m/s |
| Fastest in | Vacuum | Solids (steel ≈ 5960 m/s) |
| Frequency decides | Colour | Pitch |
| Amplitude decides | Brightness | Loudness |