weirdnet-audio-record
Recording for Weirdnet audio: stems, device outputs and a mix from streams, latency records, take manifests with per-source offsets, gap handling, alignment and re-alignment on export.
Part of Weirdnet by Weird Brains. BSD-3-Clause.
What it does
- Stems (
StemRecorder): audio placed by its position on the session clock, from raw samples or raw PCM stream frames (weirdnet-audio-stream). Missing audio becomes silence and is noted as a gap; audio that arrives twice is ignored. - Takes (
Take): sources of three kinds (a stem, a device output, a recorded mix), each with a latency record (weirdnet-audio-route'sPortLatency), an offset computed from it, a manual trim and an optional group that pairs a source's stem with its device output. - Alignment:
alignedshifts each source by its offset and cuts all of them to the same range;render_mixsums the stems. Change a trim and export again to re-align. - Measuring latency:
estimate_offsetfinds the lag of a delayed copy of a test signal by cross-correlation. - Files:
writesaves the raw sources, the renderedmix.wavandmanifest.json;loadreads them back;export_alignedwrites aligned sources. WAV is 32-bit float (16-bit PCM is read too).