Skip to main content

Module align

Module align 

Source
Expand description

The stream input’s aligner: where each collaborator’s audio plays on your loop.

  • Recorded, exact: a whole take is fetched first and plays at the loop position its stamp names, every time round. No network delay is involved at play time.
  • Live, bar-aligned: a frame stamped with the sender’s loop position plays at the same position on your loop a whole number of bars later (the default for record-along: crate::along). The bar delay is the smallest that covers the arrival delay plus jitter, or fixed.
  • Live, immediate: plays on arrival after a small jitter buffer, moved by a manual trim (listen-along).

A live frame that misses its slot is dropped and counted; the aligner never plays a frame at the wrong position. Positions are absolute frames on your side (loop_index * loop_frames + frame), from crate::stage::Grid::abs.

Structs§

Source
One collaborator’s input.

Enums§

Mode
How a source is aligned.

Functions§

bars_for
The smallest whole number of bars (1, 2, 4, …) that covers delay_ms + jitter_ms plus one block.