edit_section
Clear or replace MIDI notes and control changes in a time range, selecting tracks and start/end times. Choose to edit notes, CCs, or both.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | all | |
| tracks | Yes | ||
| end_time | Yes | ||
| trim_item | No | ||
| start_time | Yes |