preview_mix
Generate a concise meta description for the preview_mix tool that explains its purpose of applying style corrections to rendered WAVs and producing a normalized stereo preview mix playable without Ableton.
Instructions
Apply the style corrections to the rendered WAVs and bounce a stereo preview mix you can listen to WITHOUT Ableton: volumes + pans are applied to the audio directly, tracks are summed, and the result is normalized to the style's target loudness. Returns the path to the preview WAV.
Args: style: style name (see list_styles) render_dir: folder containing one WAV per track pattern: glob for audio files inside render_dir output_path: where to write the preview (default: /preview_.wav) max_duration: cap preview length in seconds. When renders have mismatched lengths (loops vs full arrangement), pass the loop length so the preview stays a tight section. If None, all tracks are trimmed to the shortest render. manual_gain: extra per-file volume in dB, keyed by the render file name without extension, e.g. {"snt2": -4.0}. sidechain_db: duck all non-snare tracks by this many dB when a snare hits, e.g. -4.0 for a light pump. None disables it.
Works fully offline (no Ableton needed) as long as the render WAVs exist. Use this to listen to the mix before applying anything in Live; for recommendations only, use auto_mix with dry_run=True.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | Style name, e.g. 'techno', 'breaks'. See list_styles. | |
| pattern | No | Glob pattern matching the WAV files inside render_dir. Default '*.wav'. | *.wav |
| render_dir | No | Folder containing one WAV per track (bounced from Ableton). Defaults to the renders/ directory. | renders |
| manual_gain | No | Extra per-file volume in dB, keyed by the render file name without extension, e.g. {'snt2': -4.0}. | |
| output_path | No | Where to write the preview WAV. Defaults to <render_dir>/preview_<style>.wav. Writes a NEW file; the source renders are never modified. | |
| max_duration | No | Cap the preview length in seconds. When renders have mismatched lengths (loops vs full arrangement), pass the loop length so the preview stays a tight section. If None, all tracks are trimmed to the shortest render. | |
| sidechain_db | No | Duck all non-snare tracks by this many dB when a snare hits, e.g. -4.0 for a light pump. None disables it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||