Skip to main content

Module spectrogram

Module spectrogram 

Source
Expand description

Streaming multi-frame CQT magnitude spectrogram (AU-CQT-STREAM).

Hops a fixed-length analysis window across a mono signal, calling the single-frame crate::features::cqt::forward_cqt_mono kernel per frame and writing a row-major [n_frames × n_bins] magnitude spectrogram into a caller-provided buffer.

Zero-heap hot path: this function performs no allocation. Each frame is a borrowed sub-slice of signal, and each frame’s CQT magnitudes are written directly into the matching row of the caller’s out buffer. The per-frame kernel itself uses only stack scalars.

Functions§

cqt_spectrogram
Compute a streaming CQT magnitude spectrogram over signal.