add_note
Add a MIDI note to a track pattern in an LMMS project. Specify pitch, position, length, velocity, and panning to place notes precisely.
Instructions
Add a note to a track's pattern.
Args: track_index: Zero-based track index (must be an instrument or pattern track) key: MIDI note number (0-127). 60=C4 (middle C), 69=A4 pos: Position in ticks RELATIVE TO THE PATTERN START (192 ticks = 1 bar). Notes are placed inside the target pattern; if a note ends beyond the pattern clip length, the clip is extended automatically (notes beyond the clip end would otherwise be silent). length: Note length in ticks (48 = 1/16 note, 96 = 1/8 note, 192 = 1 bar) volume: Note velocity (0-200, 100=normal) panning: Note panning (-100 to +100) pattern_index: Which pattern on the track to edit (default: first). Use place_pattern to create additional patterns at specific song positions first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| pos | No | ||
| length | No | ||
| volume | No | ||
| panning | No | ||
| track_index | Yes | ||
| pattern_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |