clear_notes_from_clip
Wipe all MIDI notes from a session or arrangement clip to reset it before writing a new note list, enabling a read-edit-write workflow. Use remove_notes for partial edits.
Instructions
Remove every note from a clip. Together with get_clip_notes and add_notes_to_clip this gives read → edit → write: read the notes, change the list, clear the clip, add the new list. For part of a clip use remove_notes.
Parameters:
track_index: The track
clip_index: Session slot, or position in get_arrangement_clips
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": "clear_notes_from_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | session | |
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |