Add Piano Roll Notes
piano_roll_add_notesWrites explicit custom MIDI note arrays into a channel's FL Studio Piano Roll, enabling bespoke melodies, chord voicings, or exact note sequences.
Instructions
Write an explicit list of custom MIDI notes directly into a channel's FL Studio Piano Roll.
Use for bespoke melodies, custom chord voicings, or exact note arrays; prefer
piano_roll_add_chord for a single chord, gen_emit_* for musical generators,
voice_to_piano_roll / voice_notes_to_piano_roll for hummed melodies, or
audio_melody_to_piano_roll for audio-file transcription. Pass channel (and
pattern) so FL opens the target Piano Roll automatically; verify afterward with
piano_roll_read and undo with 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": {
"notes": "<notes>"
},
"name": "piano_roll_add_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | List of note objects: required `midi` (0..127), `time_bars` (0-based project bars, default 0), `duration_bars` (default 1.0), plus optional `velocity` (0..1), `pan`, `release`, `fcut`, `fres`, `pitchofs` (-120..120), `color` (0..15), `slide`, `porta`, `muted`. | |
| 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. | |
| clear_first | No | If True, erase all existing notes in the target Piano Roll before writing; False (default) appends. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||