write_notes
Add MIDI notes to a clip with per-note pitch, timing, velocity, and probability. Existing notes stay and every note is validated before writing.
Instructions
Add MIDI notes to a clip (additive: existing notes stay). Each note: pitch (0-127), start_time and duration (beats, duration > 0) and optionally velocity (1-127, default 100), mute, probability (0-1, default 1), velocity_deviation (-127..127, default 0), release_velocity (0-127, default 64). Every note is validated before anything is written, so a bad note rejects the whole call (up to 5000 notes per call). Live never lets notes of one pitch overlap: a new note shortens an earlier note of that pitch that runs into it, and one starting at exactly the same time replaces it, so note_count in the result can be lower than expected. Returns the new note ids. One undo step. To replace or change existing notes use edit_notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Notes to add | |
| expect | No | Guard: {"name": "..."} must match the clip | |
| address | Yes | A MIDI clip |