Write piano-roll notes
fl_write_piano_roll_notesWrite MIDI notes into the FL Studio Piano Roll with pitch, time, length, velocity, grid snapping, and replace or append modes.
Instructions
Write notes into the currently-open FL Piano roll.
Each note: {pitch (MIDI), time_bars, length_bars, velocity 0-1}. Set quantize (grid in bars) to snap note starts to a grid before writing. Setup: open the Piano roll and run 'MCP_Apply' once from its Scripting menu (so Ctrl+Alt+Y targets it). mode='replace' clears first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| mode | No | 'replace' clears the pattern first; 'append' adds to it. | replace |
| quantize | No | Optional grid (bars) to snap note starts to before writing: 0.0625=1/16, 0.125=1/8, 0=off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||