Expand description
Constant-Q transform sidecar bake — log-spaced bins for timbral integrity (cold path).
Functions§
- bake_
cqt_ sidecar_ from_ preview - Bake CQT sidecar into caller buffer (
_pad=SIDECAR_KIND_CQT). - bake_
cqt_ sidecar_ from_ samples - Bake a CQT sidecar from REAL audio
samples: compute the genuine forward CQT, reducen_bins→SPECTRAL_PREVIEW_BINS, and write a single-frame sidecar through the same header machinery asbake_cqt_sidecar_from_preview(_pad = SIDECAR_KIND_CQT). Whenn_bins == SPECTRAL_PREVIEW_BINSthe magnitudes are used directly. - forward_
cqt - Real forward constant-Q transform over actual audio
samples— direct constant-Q (one complex inner product per log-spaced bin; CPU is fine, this is a cold-path ingest transform). - preview_
to_ cqt_ frame - Map linear preview energy into log-spaced CQT bins (MIDI-ish spacing across 64 bins).