tracks_set_instrument
Replace a MIDI track's instrument with any built-in or installed plugin while preserving its name, clips, effects, and mixer settings. Undo restores the previous instrument and sound.
Instructions
Replace the instrument of a MIDI track with one from instruments.list (builtin, or an installed plugin, loaded in the background). The track keeps its name, clips, effects and mixer settings. Undoable: undo brings the previous instrument back with its sound.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New track name (default: keep it). | |
| track | Yes | Track id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved). | |
| instrument | Yes | instruments.list uri, or a plugin name, e.g. Surge XT. |