create_clip
Create an empty MIDI clip in a Session slot. Specify track and clip index, and optionally set length in beats. Use before adding notes or firing the clip.
Instructions
Create an empty MIDI clip in a Session slot. Fails if the slot already has a clip (pick another clip_index or delete_clip first) or the track is an audio track. length is in beats (4.0 = one 4/4 bar). Typical chain: create_clip -> add_notes_to_clip -> fire_clip or duplicate_to_arrangement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |