replace_notes_in_clip
Clear every existing note in a clip, then write the specified notes so the clip contains exactly the given MIDI notes. Use this to replace a clip's contents instead of appending.
Instructions
Replace a clip's contents: clear every existing note, then write these.
add_notes_to_clip only appends. This clears first, so the clip ends up with exactly the notes given.
Parameters:
track_index: Track number (1-based).
clip_index: Clip slot number (1-based).
notes: Note dicts with pitch, start_time, duration, velocity, mute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |