Write Chord Arpeggio
gen_emit_arpeggioGenerate a multi-octave arpeggio from a named root and chord quality, then write it into an FL Studio Piano Roll to create chord-based patterns without manual MIDI entry.
Instructions
Generate a multi-octave arpeggio from a named root and chord quality and write it into a Piano Roll.
Use when specifying a chord by music-theory name (root, quality, octaves);
use piano_roll_add_arpeggio instead when you want to arpeggiate an arbitrary list
of explicit MIDI note numbers without clearing existing notes. Defaults to
clear_first=True; verify with piano_roll_read.
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": {
"channel": "<channel>"
},
"name": "gen_emit_arpeggio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Chord root pitch with octave (e.g. 'C4', 'A3', 'F#4'). | C4 |
| channel | Yes | 0-based global Channel Rack index whose Piano Roll will receive the generated notes. | |
| octaves | No | Number of ascending octaves to span across the chord tones (>= 1, default 1). | |
| pattern | No | Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern. | |
| quality | No | Chord quality from `gen_list_chord_qualities` (e.g. 'min', 'maj7', 'min9', 'sus2'). | min |
| velocity | No | Normalized velocity from 0.0 to 1.0 applied to every generated note (default 0.8). | |
| direction | No | Arpeggio note order: 'up', 'down', 'updown' (bounce), or 'random'. | up |
| step_bars | No | Spacing and duration of each arpeggio note in project bars (e.g. 0.0625 = 16th notes, 0.125 = 8th notes, 0.25 = quarter notes). | |
| clear_first | No | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. | |
| length_bars | No | Total duration of the generated arpeggio phrase in project bars (default 4.0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||