Expand description
Recording for Weirdnet audio: stems, device outputs and a mix, with latency records and take manifests.
- A
StemRecorderplaces incoming audio by position on the session clock, fills gaps with silence and notes them, and ignores audio that arrives twice. - A
Takeholds the stems of one recording with aManifest: per source its kind (stem, device output, mix), where it starts, its latency record, the offset computed from it and a manual trim. Take::alignedcuts every source to the take’s range, shifted by its offset, so all sources have equal length;mixsums them. Changing a trim and exporting again re-aligns.estimate_offsetfinds the lag between a reference and a delayed copy, for measuring latency from a test signal.wavwrites and reads 32-bit float WAV;Take::writewrites stems, the mix andmanifest.jsonto a folder.
Modules§
- wav
- 32-bit float WAV files.
Structs§
- Gap
- Missing audio, filled with silence.
- Latency
Record - What a port adds to the path, with its quality and how it was found.
- Manifest
- The take’s description, saved as
manifest.json. - Source
Entry - One source in the manifest.
- Stem
- A recorded source: interleaved samples starting at a session position.
- Stem
Recorder - Builds a
Stemfrom audio that arrives in blocks. - Take
- One recording: sources and their manifest.
Enums§
- Latency
Quality - How a latency figure was obtained.
- Record
Error - Why a take operation failed.
- Source
Kind - What a source is.
Functions§
- estimate_
offset - The lag, in frames from
-max_lagtomax_lag, at which monosignalbest matches monoreference(a positive lag: the signal is late). Uses plain cross-correlation, so give it a test signal with a clear shape (a click or noise burst), not a steady tone. - mix
- Sum equal-shaped interleaved buffers with a linear gain each. The result is as long as the longest input.