Export audio
export_audioRenders a Lathe song to audio files—mix and optional stems—and reports file lengths plus peak and LUFS levels for checking.
Instructions
Renders the song to audio files (WAV unless another format is asked for), like File > Export: the mix, and stems (a file per track and return) if asked. From the start to the end of the last clip unless bars are given. Lathe stops playing first. Files go in the project's Exports folder; the reply lists them with each one's length and, for the mix, its peak, true peak and integrated loudness (LUFS), so you can check the level.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mix | No | The stereo mix (default true) | |
| kbps | No | mp3: 320 (default), 256, 192 or 128. ogg: 128 to 320, on average | |
| stems | No | A file per track and return (default false) | |
| folder | No | Optional: a full path to export into (e.g. ~/Desktop/Mixes), only when the person asks for a place. Default: a new folder in the song's Exports folder. Files already there are never replaced. | |
| format | No | wav (default), aiff, flac (lossless, about half the size), mp3 or ogg (both lossy: for sharing, not for mastering or further editing) | |
| to_bar | No | Where it ends (the bar it stops at) | |
| from_bar | No | First bar (1-based) | |
| bit_depth | No | wav, aiff, flac: 16, 24 (default) or 32 (float, wav only) | |
| tail_seconds | No | Time after the end for reverb and delay tails, 0 to 30 (default 2) |