replace_all_notes
Replace all MIDI notes in an Ableton Live clip with a new set, removing existing notes and adding new notes atomically to avoid partial updates.
Instructions
Atomically replace all MIDI notes in a clip.
Removes every existing note then adds the provided notes in one operation. Each note is a dict with pitch, start_time, duration, and optionally velocity, mute, probability, velocity_deviation, release_velocity.
Args: track_index: Zero-based index of the track. clip_index: Zero-based index of the clip slot. notes: List of note dicts with pitch, start_time, duration, velocity, and optional probability, velocity_deviation, release_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_all_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |