Skip to main content

Module framing

Module framing 

Source
Expand description

Framing / overlap-add / ISTFT resynthesis (CPU reference path).

  • frame_count / cut_frame — explicit framing geometry and a caller-buffered frame cutter.
  • overlap_add — sum pre-windowed frames back at a fixed hop (COLA).
  • istft — inverse STFT via IFFT + weighted overlap-add (WOLA), normalised by the analysis·synthesis window envelope for exact reconstruction.
  • griffin_lim — magnitude-only reconstruction by alternating projection.

All hot paths are caller-buffered and zero-heap; the FFT and window primitives are reused from crate::features::fft and crate::features::window.

Re-exports§

pub use frame_cutter::cut_frame;
pub use frame_cutter::frame_count;
pub use griffin_lim::griffin_lim;
pub use istft::istft;
pub use overlap_add::overlap_add;

Modules§

frame_cutter
Explicit framing geometry: how many complete frames a signal yields, and a caller-buffered cutter that copies one frame into a supplied buffer.
griffin_lim
Griffin-Lim magnitude-only reconstruction.
istft
Inverse STFT: resynthesise a time-domain signal from per-frame complex spectra via inverse FFT + weighted overlap-add (WOLA).
overlap_add
Overlap-add (OLA) reconstruction: sum a sequence of (already-windowed) frames back into a contiguous signal at a fixed hop.