transform_clip
Transforms a Session MIDI clip into a new motif with in-key operations such as invert, retrograde, transpose, or sequence, then writes the result to a target slot.
Instructions
Develop a motif from a Session MIDI clip and write the result to another slot (default: the next empty slot below; the same slot overwrites the source). Operations, all staying in the key: invert, retrograde, augment, diminish (amount = factor, default 2), transpose (amount = scale steps), sequence (repeats copies, each amount steps higher), additive (minimalist build-up), displace (amount = beats). key/scale default to the song's scale.
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": {
"track_index": "<track_index>",
"clip_index": "<clip_index>",
"operation": "<operation>"
},
"name": "transform_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| scale | No | ||
| amount | No | ||
| repeats | No | ||
| operation | Yes | ||
| clip_index | Yes | ||
| track_index | Yes | ||
| target_clip_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |