Add Piano Roll Chord
piano_roll_add_chordAppend a single custom MIDI chord to a channel's Piano Roll at a specified bar position without clearing existing notes; undoable via project undo.
Instructions
Append one simultaneous chord of MIDI pitches to a channel's Piano Roll at time_bars.
Use to insert a single custom voicing; use gen_emit_chord_progression for a full
multi-bar progression or piano_roll_add_notes to write multiple chords in one call.
Appends without clearing existing notes; undoable via project_undo.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"midi_notes": "<midi_notes>"
},
"name": "piano_roll_add_chord"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | Optional 0-based global Channel Rack index; when provided, opens that channel's Piano Roll before running the edit. Omit to target whichever Piano Roll is already open. | |
| pattern | No | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. | |
| velocity | No | Shared normalized note velocity from 0.0 to 1.0 (default 0.8). | |
| time_bars | No | 0-based chord start position in project bars (e.g. 0.0 = bar 1 beat 1, 1.0 = bar 2 beat 1). | |
| attributes | No | Optional extra FL Studio native note properties (`pan`, `color`, `slide`, `porta`, `fcut`, `fres`, `pitchofs`, `release`, `muted`) applied to all notes in the chord. | |
| midi_notes | Yes | List of simultaneous MIDI note pitches 0..127 forming the chord (e.g. [60, 64, 67] for C major; preview voicings with `gen_chord_notes`). | |
| duration_bars | No | Shared chord duration in project bars (default 1.0 = one full bar). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||