replace_notes_in_clip
Clear every existing note in a clip, then write the specified notes so the clip contains exactly the given MIDI notes. Use this to replace a clip's contents instead of appending.
Instructions
Replace a clip's contents: clear every existing note, then write these.
add_notes_to_clip only appends. This clears first, so the clip ends up with exactly the notes given.
Parameters:
track_index: Track number (1-based).
clip_index: Clip slot number (1-based).
notes: Note dicts with pitch, start_time, duration, velocity, mute.
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>",
"notes": "<notes>"
},
"name": "replace_notes_in_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |