create_midi_item
Creates an empty MIDI item on a track and returns its item_id, so you can add notes, chords, or drums.
Instructions
Creates an empty MIDI item (default 4 bars) and returns its item_id for adding notes, chords or drums.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| track | Yes | Track number (1 = top), track name, or "master" | |
| length_qn | No | Length in quarter notes, instead of length_bars | |
| start_bar | No | Bar to start at, 1-based; default: the edit cursor | |
| start_beat | No | Beat within the bar, 1-based (default 1) | |
| length_bars | No |