The spectrum of a stretch of samples, through a Hann window, as the magnitude of each frequency bin up to half the sample rate.

The number of samples must be a power of two, unless a power of two to pad them to with silence is given, which draws a short stretch on the bins of a long one.

Summary

Functions

The magnitude of each frequency bin of the samples, from 0 Hz up to half the sample rate.

Functions

magnitudes(samples, padded \\ nil)

The magnitude of each frequency bin of the samples, from 0 Hz up to half the sample rate.