API & MCP

Everything a person can do on FFT Spectrum Calculator for Numeric Data, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

FFT Spectrum Calculator for Numeric Data

Computes the discrete Fourier transform of numeric samples of any length (exact, no truncation) and shows the single-sided amplitude and phase spectrum with a proper frequency axis, the strongest peaks with interpolated frequencies, a plot of the signal and the spectrum, and a CSV of every bin. Windows: rectangular, Hann or Hamming; optional mean removal and zero padding. For audio files use the Soundscape spectrum analyzer; this tool takes numbers. Part of the Proofline math notebook.

Inputs of FFT Spectrum Calculator for Numeric Data
FieldTypeDefaultDescription
samples (required)textarea—Samples. One value per line (or separated by spaces/commas), or two columns time, value with equal time steps (the sample rate then follows from the time column). At most 16384 samples.
sampleRatenumber1Sample rate. Samples per second (or per unit of your x axis). Frequencies are reported in the same unit.
windowselect (hann, hamming, rectangular)"hann"Window
removeMeanbooleantrueRemove the mean (DC) first
zeroPadbooleanfalseZero-pad to the next power of two. Interpolates the spectrum on a finer grid; does not add real resolution.
peaksinteger5Peaks to list

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "proofline-fft-spectrum": { "type": "http", "url": "https://prooflinefftspectrum.usefulweb.site/mcp" }
  }
}