Skip to main content

Module frame_cutter

Module frame_cutter 

Source
Expand description

Explicit framing geometry: how many complete frames a signal yields, and a caller-buffered cutter that copies one frame into a supplied buffer.

Zero-heap: frame_count is pure integer arithmetic; cut_frame copies into a caller-owned &mut [f32] with no allocation.

Functionsยง

cut_frame
Copy frame index of a signal (window position index * hop) into out.
frame_count
Number of complete frames of length frame_size obtainable from a signal of signal_len samples advancing by hop each step.