bitwig_write_clip
Create or replace a launcher MIDI clip on a specified Bitwig track, setting its name, loop length, color, and notes, then read it back to verify every property.
Instructions
Create a launcher MIDI clip (or replace one with replace=true) on one exact track, set its name, length (as its loop) and color, write all its notes, and read the whole clip back. Any missing, changed or extra note or clip property fails the call with the exact differences. Slot = one past the last scene adds a new scene.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trackId": "<trackId>",
"name": "<name>",
"lengthBeats": "<lengthBeats>",
"notes": "<notes>"
},
"name": "bitwig_write_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Defaults to an enabled loop from 0 to lengthBeats | |
| name | Yes | ||
| color | No | Clip color as #RRGGBB | |
| notes | Yes | Complete note content; up to 750 notes (one request must fit in a 60 KB message) | |
| replace | No | Replace a clip already in the slot | |
| trackId | Yes | Track id from bitwig_tracks; it stays the same when the track is renamed or moved | |
| slotIndex | No | Launcher slot (scene) index, 0-based | |
| lengthBeats | Yes | Clip length in beats. The clip loops from 0 to lengthBeats unless loop says otherwise | |
| stepsPerBeat | No | Grid resolution for note starts in steps per beat (4 = 1/16 at 4/4, 96 for fine timing). Every note start must lie on this grid. Clip span × stepsPerBeat may not exceed 16384 |