cw_add_song_tracks
Adds one MIDI track per requested role (drums, bass, keys, guitar, strings, synth) to a Cakewalk SONAR arrangement, inserting only specified roles and stopping at a time budget.
Instructions
Add the tracks a simple arrangement needs: drums, bass, keys, guitar, strings, synth — in that order, one MIDI track each. Pass roles to add only some. Each track gets SONAR's default instrument; loading a specific plugin is a separate UI step. Cost, measured: one insert takes ~19s (a menu post plus a verification wait), so the full six-track skeleton needs roughly two minutes. Pass roles and a matching budgetMs together rather than asking for all six.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | No | ||
| budgetMs | No | Stop adding after this long and report which roles were not attempted. One insert takes ~19s, so the default covers about two tracks; allow ~120s for all six. |