record_audio
Record audio from Ableton Live to a WAV file via loopback. Select a track, master, or return channel, set duration in bars or seconds, and obtain the WAV path for analysis.
Instructions
Capture Live's audio output to a WAV via a loopback device (BlackHole) —
the per-track 'ears'. Give a duration as bars (resolved from the session
tempo/meter) or seconds; capture is REALTIME so prefer 2–4 bars.
source: a track index (int) to capture ONE track — it is soloed for the
capture and the prior solo state is restored — or 'master' / 'return:N'
(no solo). scene: the Session scene to fire so clips actually play (this
project composes in Session view — pass the arrangement scene index);
omit scene to play the Arrangement from position_beats instead.
Needs BlackHole + a Multi-Output Device set as Live's output, ffmpeg, and a
one-time Microphone grant. If no loopback device is found the reply explains
how to install it and names the manual-export fallback. Returns the WAV path
(in the temp dir) — feed it to analyze_audio / compare_audio.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | ||
| solo | No | ||
| scene | No | ||
| device | No | ||
| source | No | master | |
| seconds | No | ||
| out_path | No | ||
| tail_seconds | No | ||
| position_beats | No | ||
| tighten_launch | No | ||
| preroll_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |