Lesson 1 of 15
Wave Period
Wave Period & Frequency
A wave oscillates in time. Two quantities describe this:
T = rac{1}{f} qquad f = rac{1}{T}
- T — period (s): time for one complete cycle
- f — frequency (Hz): cycles per second
The Audible Spectrum
| Frequency | Period | Sound |
|---|---|---|
| 20 Hz | 0.050000 s | lowest audible bass |
| 440 Hz | 0.002273 s | concert A4 |
| 1000 Hz | 0.001000 s | reference tone |
| 20 000 Hz | 0.000050 s | upper hearing limit |
Your Task
Implement wavePeriod(f) returning the period in seconds.
Run the code to hear a 440 Hz tone — one cycle every 0.002273 seconds.
Web Audio API loading...
Loading...
Click "Run" to execute your code.