add_notes_with_probability
Add MIDI notes with per-note probability and velocity deviation to Ableton Live clips, preserving probability data for generative workflows that legacy note insertion drops.
Instructions
Add MIDI notes carrying per-note probability and velocity deviation.
Prefer this over add_notes_to_clip for anything generative. Plain add_notes_to_clip uses Live's legacy API, which has no probability field and silently drops it.
Parameters:
track_index: The index of the track containing the clip
clip_index: The index of the clip slot containing the clip
notes: List of note dictionaries. Each takes pitch, start_time, duration, velocity, mute, plus optional probability (0.0 to 1.0) and velocity_deviation.
replace: Replace existing notes in the clip (default True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| replace | No | ||
| clip_index | Yes | ||
| track_index | Yes |