Expand description
Brick Q2 (core) — a radix-2 Cooley–Tukey FFT, the psychoacoustic model’s
analysis transform. Pure in-house, no dependencies. Scalar Rust; this is the
single biggest cycle sink in a perceptual encoder and is flagged as a SIMD
hotspot (lab::bricks::accel → SIMD), but the scalar path is the reference the
SIMD twin will be checked against.
Functions§
- fft
- In-place complex FFT.
re/imare the real/imaginary parts;re.len()must be a power of two and equal toim.len(). Forward transform (exp(-i2πkn/N)). - power_
spectrum - Power spectrum
|X[k]|²of a real signal windowed intore(withimzeroed), for the firstn/2 + 1bins. Convenience for the psymodel.