edit_section
Clear or replace MIDI notes and CC data in a time range on specified tracks, with modes for notes-only or CC-only edits.
Instructions
Clear+replace notes/CCs in a time range. For CC-only fixes, use rewrite_cc instead.
Args: tracks: JSON array. Each: {"track_index":0, "notes":[...], "ccs":[...]}. Omit notes/ccs to just clear. Or "all". start_time: Range start in seconds. end_time: Range end in seconds. mode: "all" (default), "ccs_only", or "notes_only". trim_item: Shorten item to start_time (for cutting endings).
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": "edit_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | all | |
| tracks | Yes | ||
| end_time | Yes | ||
| trim_item | No | ||
| start_time | Yes |