Compare the pitch of two test tones

A low tone raises bars on the left. Switch to the high tone and the tallest bar moves with the measured peak frequency.

Try the motion

When to use it

Inspect which frequencies are strongest in an audio signal.

How the motion works

Web Audio generates the selected sine tone. An 8192-sample analysis groups 80–2000 Hz into 52 bands. Bin spacing can put the measured peak a few hertz from the selected frequency. Stopping clears the spectrum after a short decay, immediately with reduced motion.

How to use it

iOS
Tap 220 Hz, then 880 Hz. Compare the peak positions and tap Stop tone.
Android
Tap the two frequency buttons in turn. Use Stop tone to silence the sound.
PC
Tab to either frequency and press Enter. Use the same keys on Stop tone.

Try a device version

Example files and implementation notes

Choose a device in the demo and save the motion to your collection to download the working HTML and implementation notes as a ZIP.