Skip to main content

Module along

Module along 

Source
Expand description

Record-along on the network: your dry stream (your own voices, each frame stamped with its loop position), your last loop as a stamped recorded take, and playing a collaborator’s take or live dry stream aligned to your loop.

Structs§

AlongStats
What a play-along source measured.
LastLoop
The last full loop of your dry audio: interleaved samples and the absolute position of the first.

Enums§

Tap
Which positioned tap to stream.

Constants§

DRY
Your live dry stream.
DRY_TAKE
Your last loop, recorded and stamped.
MARGIN
How far ahead of now a live source is first placed: a jitter buffer of 2048 frames (about 43 ms at 48 kHz).
OUT
What your device plays (the device-output tap), stamped like the dry stream.

Functions§

grid
The grid on your side now.
local_now
Your transport position now, in absolute frames, while playing (estimated from the audio clock).
loop_offset
Whole loops to add to a sender’s absolute position so that, delay frames (the bar delay) later, it still lies at least margin frames ahead of now. The two transports run the same grid but started at different times, so this keeps the position on the loop and picks the next time round that can still be played.
play_along
Play a collaborator’s recorded take (Mode::Recorded) or live dry stream (other modes) into slot.
publish_take
Publish your last loop as the recorded stream DRY_TAKE, stamped with where it starts on the loop. Returns its frames.
pump_dry
Moves the dry tap into stamped frames on publisher, keeping the last loop in last. Runs until stop.
pump_tap
Moves a positioned tap into stamped frames on publisher (keeping the last loop in last, if given). Runs until stop.