weirdnet-audio-record 0.1.0

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.
Documentation

weirdnet-audio-record

crates.io docs.rs

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's PortLatency), an offset computed from it, a manual trim and an optional group that pairs a source's stem with its device output.
  • Alignment: aligned shifts each source by its offset and cuts all of them to the same range; render_mix sums the stems. Change a trim and export again to re-align.
  • Measuring latency: estimate_offset finds the lag of a delayed copy of a test signal by cross-correlation.
  • Files: write saves the raw sources, the rendered mix.wav and manifest.json; load reads them back; export_aligned writes aligned sources. WAV is 32-bit float (16-bit PCM is read too).
cargo run --example headless