update_notes
Update specific notes in a MIDI clip by matching their pitch and timing, then applying modifications like velocity, duration, or pitch. Safer than clearing and rewriting the entire clip.
Instructions
Surgically modify EXISTING notes in a MIDI clip without clearing/rewriting it. Each update matches notes by pitch + start_time (within tolerance) and applies the new_* fields. Much safer than clear_clip_notes + add_notes_to_clip.
Parameters:
track_index: The track holding the clip
clip_index: The clip slot index
updates: List of dicts, each with: pitch (int, required), start_time (float, required, beats), tolerance (float, optional, default 0.05 beats), new_velocity / new_duration / new_start_time / new_pitch / new_mute (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |