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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |