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

FrequencyPeriodSound
20 Hz0.050000 slowest audible bass
440 Hz0.002273 sconcert A4
1000 Hz0.001000 sreference tone
20 000 Hz0.000050 supper 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.