Skip to main content

Module spectrum

Module spectrum 

Source

Structs§

Band
Framed
Peak
Spectrum

Constants§

MAX_FRAME
MAX_PINNED_FRAME
One FFT’s memory, which is all that bounds a caller’s own frame.
MIN_FRAME

Functions§

analyze
db
magnitudes
A full-scale sine reads 1.0 at its own bin. Without frame_secs the size follows the range, so two ranges land on two bin grids.
magnitudes_of
peaks
Local maxima, parabolically interpolated so a peak between two bins reports its real frequency instead of the nearest bin’s.
pinned_frame
A caller checks this against MAX_PINNED_FRAME: a shrunk frame is not a pinned one.
third_octave_edges
Third-octave from 20 Hz up.