remove_notes
Deletes only the MIDI notes inside a specified time window and pitch range, so you can clear one bar or drum lane before adding replacement notes.
Instructions
Remove only the notes starting inside a time window and a pitch range — to rewrite one bar, or one drum lane, then add the new notes.
Parameters:
track_index: The track
clip_index: Session slot, or position in get_arrangement_clips
from_time: Window start, in beats from the clip start
time_span: Window length in beats (default: until the clip end)
from_pitch: Lowest pitch of the range (0–127)
pitch_span: How many pitches from from_pitch (128 = all, 1 = just that note)
location: "session" (default) or "arrangement"
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | session | |
| 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 |