bounce_stems
Render selected tracks as individual stereo stem tracks within the project. Adds stems as new tracks and mutes the originals.
Instructions
Render the given tracks as individual audio stems (in-project).
Selects the tracks, then invokes REAPER's "Render tracks to stereo stem tracks" action (command ID 40892). Resulting stems are added to the project as new tracks.
IMPORTANT SIDE EFFECTS (undocumented by REAPER, confirmed by behavior):
The source tracks are AUTOMATICALLY MUTED after rendering so you can hear the stems instead of double-playback. If you need to compare or continue editing the originals, call
track_set_mute(False)on them after this finishes.New stem tracks are inserted below the source tracks.
Works with pre-fader + post-FX rendering (standard REAPER behavior).
Requires REAPER 5.x or newer. For export to audio files on disk, use
project_export_audio instead — this tool is for in-project stemming.
Args: track_indices: JSON array of track indices to stem, e.g. "[0,1,2]". output_dir: Reserved (not currently used — in-project stemming). format: Reserved (not currently used).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_indices | Yes | ||
| output_dir | No | ||
| format | No | wav |