remove_notes_in_range
Surgically delete MIDI notes inside a selectable pitch and time window without affecting other notes.
Instructions
Surgically remove notes inside a pitch/time window of a MIDI clip, keeping everything else (unlike clear_clip_notes which wipes all).
Parameters:
track_index / clip_index: which clip
from_pitch: lowest MIDI pitch to remove (default 0)
pitch_span: how many pitches up from from_pitch (default 128 = all)
from_time: window start in beats (default 0.0)
time_span: window length in beats (-1 = to end of clip)
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>"
},
"name": "remove_notes_in_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_time | No | ||
| time_span | No | ||
| clip_index | Yes | ||
| from_pitch | No | ||
| pitch_span | No | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |