From a list of samples to its frequencies

Find the tones
hidden in a signal

Paste samples of a signal and give the rate they were taken at. The page computes the discrete Fourier transform, draws the amplitude spectrum and lists the strongest frequencies with their size and phase.

Enter your figures and read the result

Paste numbers separated by spaces, commas or new lines. The worked example is a 3 Hz tone and a quieter 7 Hz tone. Saved on this device only.

Loading Fourier Transform Spectrum Analyzer. If nothing appears, turn on JavaScript.

What you get

Enrichment · STEM ExplorationsOpen to everyone · no sign-in

What you finish with
A worked-out result for your own entry (a headline figure, tiles, tables and a drawing where one helps), as a printout, a spreadsheet (.csv) or a saved file.
Who it is for
Students in precalculus, physics, signals and music technology, and teachers who want a spectrum from numbers a class collected or made.
Format
Browser tool for a phone, tablet or computer: type or paste, the result updates as you type. Print, spreadsheet (.csv), save to a file and open it again.
Access
Open to everyone with the link: no account, no sign-in, nothing to buy and nothing to install. Everything you type stays in this browser; nothing is sent to Caveat.
Where it lives
The STEM Explorations space in Caveat Enrichment.
Support
Questions about access, an order or a correction: team@caveatacademic.com.

How to use it

  1. Load the worked example to see how it reads, or start with your own entry.
  2. Type or paste into the fields; the result updates as you type.
  3. Read the headline, the tiles and the tables.
  4. Try a second case from the buttons above the fields.
  5. Print the result, download a spreadsheet or save the entry to a file.

Analyze the samples

How it works

The worked example from the pasted samples to the two peaks.

Why a peak is not always sharp

The transform tests only frequencies that fit a whole number of cycles in the samples you gave. A tone that does not fit is smeared over nearby bins, and the peak is lower. Taking more samples narrows the steps and sharpens the picture.

Sampling and aliasing

A signal sampled at a rate R can only show frequencies below R/2. A tone above that appears at a false lower frequency. This is why audio is sampled at 44,100 samples per second: the human ear stops near 20,000 Hz.

Sources

  1. Oppenheim, A. V., & Schafer, R. W. Discrete-Time Signal Processing, 3rd ed., Pearson, chapter 8, The discrete Fourier transform.
  2. Smith, S. W. The Scientist and Engineer's Guide to Digital Signal Processing, chapter 8, The discrete Fourier transform. Peaks of the worked example were checked against an independent fast Fourier transform.

The worked examples are invented for illustration. What you type is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.