Lesson 2 of 15
Wave Speed
Wave Speed
A wave has both frequency and spatial extent. The wavelength is the distance between successive crests. The wave equation connects all three quantities:
- v — wave speed (m/s)
- f — frequency (Hz)
- — wavelength (m)
Sound in Air
Sound travels at m/s at 20 °C. This links frequency and wavelength for every audible tone:
| f (Hz) | (m) | v (m/s) |
|---|---|---|
| 440 | 0.780 | 343.20 |
| 1000 | 0.343 | 343.00 |
| 200 | 1.715 | 343.00 |
| 100 | 3.430 | 343.00 |
Your Task
Implement waveSpeed(f, lambda) returning the wave speed in m/s.
Web Audio API loading...
Loading...
Click "Run" to execute your code.