rewrite_cc
Replace MIDI CC automation within a specified time range while preserving notes. Define explicit CC points to shape curves like crescendos.
Instructions
Replace CC automation in a time range, leaving notes untouched.
Write curves as explicit CC points — there are no curve templates. For a crescendo, insert a series of points with rising cc_value; the resolution is up to you (e.g. one point every half bar).
Args: tracks: JSON array. Each: {"track_index":0, "ccs":[{"cc_number":1, "cc_value":64, "position":0.0, "channel":0}]}. Or "all". position is in seconds. Entries missing any of cc_number/ cc_value/position are skipped silently, so a malformed array still reports success with ccs_inserted: 0 — check that count rather than the success flag. start_time: Range start in seconds. end_time: Range end in seconds.
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": {
"tracks": "<tracks>",
"start_time": "<start_time>",
"end_time": "<end_time>"
},
"name": "rewrite_cc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracks | Yes | ||
| end_time | Yes | ||
| start_time | Yes |