fLMCP — FL Studio
v0.6.1Control FL Studio 2024–2026: transport, mixer, channels, plugins, piano roll, generators.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fl_ping Check FL Studio Bridge Health
Check FL Studio MIDI bridge connectivity and piano-roll script availability. Call this first at the start of a session to verify that FL Studio is running, check for bridge version mismatches, and list available capability groups. Use `fl_bridge_info` for low-level runtime details once online, or `fl_reconnect` to reset a stale transport handle; never raises when the bridge is offline.
fl_reconnect Reconnect FL Studio Bridge
Reset the controller bridge client connection and return the refreshed health status. Use after restarting FL Studio, reloading MIDI scripts, or recovering from a bridge timeout; prefer `fl_ping` for a read-only connectivity check without resetting handles. Clears cached local transport state and re-pings FL Studio without modifying the project; returns `online=False` with a setup hint if FL Studio is still unreachable.
fl_bridge_info Get FL Studio Bridge Details
Retrieve detailed runtime metadata from the live FL Studio MIDI bridge. Returns bridge version, FL Studio version, API version, protocol revision, and supported bridge action names. Use `fl_ping` for a quick health check including piano-roll script status, or `fl_introspect` to query FL's Python scripting modules. Returns `ok=False` with a hint if the MIDI bridge is offline.
fl_call_raw Call FL Studio Bridge Action
Invoke any low-level FL Studio MIDI bridge action directly with arbitrary parameters. Escape hatch for bridge actions not exposed by a dedicated tool or when debugging; always prefer typed domain tools (`transport_*`, `mixer_*`, `channel_*`, `plugin_*`) for normal workflows and use `fl_batch` to combine multiple actions in one tick. Side effects, validation, and undoability depend on the target action; unknown actions or offline bridge state raise a tool error.
| Parameter | Type | Description |
|---|---|---|
action * | string | Exact dot-separated bridge action name (e.g. 'transport.status', 'mixer.trackInfo'). |
params | Optional JSON object of keyword arguments passed directly to the bridge handler. |
fl_batch Run Bridge Actions in Order
Execute 1 to 32 ordered FL Studio bridge actions in a single MIDI wake tick. Use to group bulk mixer, channel, or pattern edits for much lower latency than sequential tool calls; prefer single typed tools for one-off reads or writes, and save a checkpoint with `mix_checkpoint_save` or `project_save_undo` before large write batches. Actions are validated before dispatch; execution is not transactional, so earlier writes stay applied if a later action fails—inspect every item in `results`.
| Parameter | Type | Description |
|---|---|---|
actions * | array | Ordered list of 1 to 32 bridge actions; each object needs a non-empty 'action' string and optional 'params' dict. |
fl_introspect Inspect FL Studio Scripting API
List the Python scripting functions exposed by the currently running FL Studio build. Use when checking whether the user's FL Studio version (2024, 2025, or 2026) supports a specific scripting API; prefer `fl_bridge_info` to check fLMCP bridge actions. Read-only; raises a tool error if the MIDI bridge is offline.
| Parameter | Type | Description |
|---|---|---|
include_docs | boolean | Include FL Studio's built-in Python docstrings for each callable (significantly larger output). Defaults to False. |
module | Optional single FL Python module name to inspect (e.g. 'patterns', 'mixer', 'plugins', 'general'). Omit to inspect all modules. | |
search | Optional case-insensitive substring filter applied to callable function names. |
fl_list_toolsets List fLMCP Toolsets
Report enabled fLMCP tool groups, presets, disabled tools, and startup configuration. Use when a workflow needs tools that may be filtered out by `FLMCP_TOOLSETS` or `FLMCP_DISABLE_TOOLS`, or to guide users toward smaller presets (`lean`, `core`, `mix`). Runs locally on the MCP server without requiring FL Studio to be running.
transport_play Toggle Playback
Start or toggle song/pattern playback in FL Studio (Play/Pause button). Check `transport_status` first if you need to avoid accidentally pausing an active transport, and use `transport_stop` to halt playback and reset the playhead. Switches focus away from plugins with their own transport (such as Edison) so the main FL Studio transport responds; raises a tool error if the bridge is offline.
transport_stop Stop Playback
Stop FL Studio playback and return the playhead to the start or loop marker. Use instead of `transport_play` whenever you want guaranteed silence rather than a play/pause toggle; safe to call repeatedly when already stopped. Switches focus away from plugins that steal transport keys; raises a tool error if the bridge is offline.
transport_record Toggle Recording
Toggle FL Studio's global record arm state on or off. Check `transport_status` before toggling and use `transport_set_recording_options` to configure precount, metronome, or loop-recording switches beforehand. Arming may open FL Studio's modal "What would you like to record?" prompt, which blocks all further bridge edits until answered in FL; on Windows, the response flags `record_prompt_open=True` with recovery guidance.
transport_status Read Transport Status
Read current FL Studio playback and record state, playhead position, loop mode, and BPM. Use before starting/stopping playback, writing tempo-dependent notes, or verifying transport mutations; use `transport_song_length` for total song duration or `transport_recording_options` for metronome and precount switches. Read-only; raises a tool error if the bridge is offline.
transport_set_position Seek Playhead
Move FL Studio's playhead to an absolute position in bars, seconds, or ticks. Use for absolute seeking and auditioning sections; use `transport_jog` for small relative 16th-note nudges or `arrangement_jump_marker` to jump between timeline markers. Does not start playback and does not create an undo entry; returns the resulting position in bars.
| Parameter | Type | Description |
|---|---|---|
position * | number | Target offset from the start of the song or pattern in the chosen `unit` (0 = beginning; clamped to >= 0). |
unit | string | Unit for `position`: 'bars' (default, 0-based bar offset using project meter), 'seconds', or 'ticks' (PPQ ticks). |
transport_song_length Read Song Length
Read total length of the current FL Studio song or active pattern across time units. Returns length in ticks, seconds, milliseconds, bars, and 16th-note steps. Use `transport_status` for current playhead position and playback state, or `pattern_list` for individual pattern step lengths. Read-only.
transport_set_loop_mode Select Song or Pattern Mode
Switch FL Studio between Song (Playlist) mode and Pattern loop mode. Use 'pattern' when auditioning channel-rack grooves or piano-roll edits on one pattern, and 'song' when checking full playlist arrangements or running `mixer_diagnose` over a song section. Idempotent; raises on invalid mode or offline bridge.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Playback mode to activate: 'song' plays the Playlist timeline, 'pattern' loops the selected pattern. |
transport_set_playback_speed Set Playback Speed
Set FL Studio's temporary playback speed multiplier without changing project BPM. Use to audition fast passages slowly (e.g. 0.5) or skim long arrangements (e.g. 2.0); use `transport_set_tempo` to permanently change the project's BPM. Values outside 0.25..4.0 are clamped by the bridge.
| Parameter | Type | Description |
|---|---|---|
speed * | number | Playback speed multiplier between 0.25 (quarter speed) and 4.0 (4x speed), where 1.0 is normal speed. |
transport_set_tempo Set Project Tempo
Set the FL Studio project tempo to an exact BPM value. Prefer this over `transport_tap_tempo` whenever a target BPM is known, and read `transport_status` afterward to verify. Records a proper undo entry via FL's REC event system (revert with `project_undo`); out-of-range values are clamped.
| Parameter | Type | Description |
|---|---|---|
bpm * | number | Target project tempo in beats per minute (typical FL range 10.0 to 522.0; fractional BPM supported on FL 2026+). |
transport_tap_tempo Tap Project Tempo
Send one tap-tempo pulse to FL Studio to interactively estimate project BPM. Requires repeated timed calls to establish a new tempo; use `transport_set_tempo` instead whenever you know the desired numeric BPM. Mutates live tempo once enough taps accumulate.
transport_set_time_signature Set Project Time Signature
Set the FL Studio project's time signature numerator and denominator. Affects bar-to-tick conversions across `piano_roll_*`, `pattern_set_length`, and `arrangement_set_selection`. On FL versions where direct time-signature setters are restricted, returns `ok=False` with a hint; verify with `project_metadata`.
| Parameter | Type | Description |
|---|---|---|
denominator * | integer | Beat subdivision / note value (bottom number, e.g. 4 for quarter-note beat or 8 for eighth-note beat). |
numerator * | integer | Beats per bar (time signature top number, e.g. 4 for 4/4, 3 for 3/4, 7 for 7/8; 1..16). |
transport_toggle_metronome Toggle Metronome
Flip FL Studio's metronome click on or off without reading its prior state. Prefer `transport_set_recording_options(metronome=True/False)` when you want an explicit target state instead of blindly toggling, and check `transport_recording_options` to inspect the current switch. Does not affect project audio rendering.
transport_toggle_countdown_before_recording Toggle Recording Countdown
Flip FL Studio's countdown-before-recording (precount) switch on or off. Prefer `transport_set_recording_options(countdown=True/False)` to guarantee a specific state rather than blindly toggling, and inspect `transport_recording_options` first if unsure. Takes effect on the next recording pass.
transport_recording_options Read Recording Options
Read FL Studio's global recording toolbar switches (metronome, precount, loop record, step edit). Returns boolean states for `metronome`, `countdown` (precount), `wait_for_input`, `loop_record`, and `step_edit` (null where the running FL version lacks a getter; overdub has no getter in FL). Pair with `transport_set_recording_options` to change them.
transport_set_recording_options Set Recording Options
Explicitly enable or disable FL Studio's recording toolbar switches in one call. Prefer this over `transport_toggle_metronome` and `transport_toggle_countdown_before_recording` whenever you want deterministic on/off states; omit any parameter to keep its current value. Reports the requested new states because FL's getters lag until the callback completes.
| Parameter | Type | Description |
|---|---|---|
countdown | Set countdown before recording / precount on (True) or off (False); omit/None to leave unchanged. | |
loop_record | Set loop recording on (True) or off (False); omit/None to leave unchanged. | |
metronome | Set metronome click on (True) or off (False); omit/None to leave unchanged. | |
step_edit | Set step-editing mode on (True) or off (False); omit/None to leave unchanged. | |
toggle_overdub | boolean | Set True to flip blend-recording (overdub) mode; FL exposes no getter for overdub, so only toggling is supported. |
wait_for_input | Set wait-for-input-to-start-playing on (True) or off (False); omit/None to leave unchanged. |
transport_jog Nudge Playhead
Shift FL Studio's playhead relative to its current position by 16th-note steps. Use for small relative nudges; use `transport_set_position` to jump to an exact bar, second, or tick offset, or `arrangement_jump_marker` to step between timeline markers. Clamped at the beginning of the song; does not create an undo entry.
| Parameter | Type | Description |
|---|---|---|
steps * | integer | Signed number of 16th-note steps to move the playhead (positive = forward, negative = backward). |
pattern_count Count Patterns
Count non-empty or named FL Studio patterns and report the highest populated index. Use for a lightweight count check; use `pattern_list` when you need each pattern's 1-based index, name, color, and step length, or `pattern_current` for the active selection. Read-only; raises a tool error if the bridge is offline.
pattern_current Get Current Pattern
Return the 1-based index and name of the currently selected FL Studio pattern. Use before editing steps or piano-roll notes to confirm which pattern is active; use `pattern_list` to see all populated patterns or `pattern_select` to switch. Read-only.
pattern_list List Patterns
List all populated FL Studio patterns plus the active pattern with indices, names, colors, and lengths. Pattern indices are 1-based and lengths are reported in 16th-note steps (16 steps = one 4/4 bar). Use this or `project_snapshot` to resolve pattern names to indices, or `pattern_find_by_name` for an exact single-name lookup. Read-only.
pattern_select Select Pattern
Switch FL Studio's active pattern selection to a 1-based pattern index. Use before step-sequencer edits or to focus an existing pattern; use `pattern_create` to allocate a fresh empty pattern or `pattern_jump_to_next`/`pattern_jump_to_previous` for relative stepping. Raises a tool error if `index` is out of range (must be >= 1).
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based pattern number to select (1..999; check `pattern_list` for active patterns). |
pattern_create Create Pattern
Allocate and select the next empty FL Studio pattern slot, optionally naming it. Use to start a fresh musical part without overwriting existing patterns; use `pattern_clone` to duplicate an existing pattern's notes and steps instead. Returns the new 1-based `index` and `name`.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional label for the new empty pattern; leave empty to keep FL's default 'Pattern N' name. |
pattern_rename Rename Pattern
Rename an existing FL Studio pattern by its 1-based index. Use to organize patterns cleanly in the Picker Panel; use `channel_set_name` for Channel Rack instruments, `mixer_set_name` for Mixer tracks, or `playlist_set_track_name` for Playlist lanes. Raises a tool error if `index` is invalid.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based pattern number to rename (e.g. 1 for Pattern 1). |
name * | string | New display name for the pattern (e.g. 'Chorus Chords'). |
pattern_set_color Set Pattern Color
Set the display color of an FL Studio pattern by its 1-based index. Use for visual grouping in the Pattern Picker and Playlist; use `channel_set_color`, `mixer_set_color`, or `playlist_set_track_color` for other surfaces. Raises a tool error on invalid pattern index or unparseable color string.
| Parameter | Type | Description |
|---|---|---|
color * | string | Target color as '#RRGGBB' hex (e.g. '#3A86FF') or 'rgb(r,g,b)'. |
index * | integer | 1-based pattern number whose color will be updated. |
pattern_clone Clone Pattern
Copy a 1-based FL Studio pattern's notes and step grid into another pattern and select the copy. Use to create variations (e.g. Verse B from Verse A) without altering the original; use `pattern_duplicate_data` to double the musical length inside the same pattern, or `pattern_create` for a blank pattern. Providing `dest_index` overwrites that slot on FL 2026.1.1+ (revert with `project_undo`); returns `{source_index, new_index, name}`.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based source pattern index to copy (notes and step sequencer grid). |
dest_index | Optional 1-based destination pattern index (FL 2026.1.1+, overwrites that slot). Omit to clone into the next free pattern. | |
new_name | string | Optional display name for the cloned pattern; empty keeps FL's cloned label. |
pattern_delete Delete Pattern
Clear a 1-based pattern's custom name (FL's scripting API cannot remove pattern slots). Because FL Studio's public API cannot delete pattern objects or unlink clips, this resets the pattern name while leaving notes in place. Use `pattern_clear` (FL 2026+) to erase all notes and steps inside the pattern, or `piano_roll_clear` for one channel.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based pattern index whose custom name will be cleared. |
pattern_set_length Set Pattern Length
Set a 1-based pattern's loop length in bars, beats, or 16th-note steps (FL Studio 2026+). Supply exactly one of `bars`, `beats`, or `steps` (passing zero or multiple raises a tool error). Returns the resulting length in steps, beats, and bars. On FL 2024/2025 where this API is unavailable, returns `ok=False` with a hint—extend notes or the step grid instead.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based pattern index whose length will be set. |
bars | Target length in bars using the project time signature. Provide exactly one of `bars`, `beats`, or `steps`. | |
beats | Target length in beats (quarter notes in 4/4). Provide exactly one of `bars`, `beats`, or `steps`. | |
steps | Target length in 16th-note steps (4 per beat, 16 per 4/4 bar). Provide exactly one of `bars`, `beats`, or `steps`. |
pattern_clear Clear Pattern
Remove all notes and step-sequencer hits from a 1-based pattern while keeping the pattern slot (FL Studio 2026+). Use to empty an entire pattern across all channels; use `piano_roll_clear` or `channel_clear_step_sequence` to erase only one channel. Undoable via `project_undo`. Older FL builds return `ok=False`; builds that show a modal confirmation dialog return `pending_confirmation=True` until the user responds in FL Studio.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based pattern index to wipe clean of all notes and step-sequencer hits. |
pattern_find_by_name Find Pattern by Name
Find a pattern's 1-based index by exact case-insensitive name match. Use when you know a pattern's exact name; use `pattern_list` to browse all patterns or search partial names. Returns `index=None` and `name=None` when no pattern matches instead of raising an error.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact pattern name to look up (case-insensitive, e.g. 'Drums'). |
pattern_jump_to_next Select Next Pattern
Advance FL Studio's active selection to the next pattern index. Use for sequential stepping through patterns; prefer `pattern_select` whenever you already know the target 1-based index or `pattern_create` to allocate a new blank pattern. Returns the newly selected 1-based pattern index and name.
pattern_jump_to_previous Select Previous Pattern
Move FL Studio's active selection backward to the previous pattern index. Use for sequential stepping backward; prefer `pattern_select` whenever you already know the target 1-based index. Clamps at pattern 1 and returns the resulting index and name.
pattern_move Move Selected Patterns
Reorder FL Studio's currently selected patterns one slot up or down in the pattern list. Select the target pattern with `pattern_select` first. Reordering shifts pattern indices in the project—call `pattern_list` afterward to refresh index mappings. Requires FL Studio 2026+ (returns `ok=False` on older builds).
| Parameter | Type | Description |
|---|---|---|
direction * | integer | Step direction in the pattern list: -1 moves up (lower index), +1 moves down (higher index). |
pattern_duplicate_data Duplicate Pattern Data
Repeat all notes and step data inside a 1-based pattern, doubling its length in place. Use to turn a 2-bar pattern into a 4-bar pattern before editing the second half; use `pattern_clone` to copy a pattern into a separate pattern slot, or `piano_roll_duplicate` to duplicate notes on a single channel only. Undoable with `project_undo`; requires FL Studio 2026+ (`ok=False` on older builds).
| Parameter | Type | Description |
|---|---|---|
index * | integer | 1-based pattern index whose notes and steps will be doubled in place. |
channel_count Count Channels
Count the number of channels in FL Studio's Channel Rack. Use `global_count=True` (default) to match the 0-based global indices expected by every `channel_*` tool; use `channel_all` when you also need names, volumes, and mixer routing. Read-only.
| Parameter | Type | Description |
|---|---|---|
global_count | boolean | If True (default), count channels across all Channel Rack filter groups; if False, count only the active filter group. |
channel_info Get Channel Details
Read volume, pan, pitch, mute/solo state, color, and mixer routing for one Channel Rack channel. Use to inspect a single channel by 0-based global index; use `channel_all` or `project_snapshot` to fetch all channels at once, or `mixer_track_info` to inspect the destination mixer insert. Raises a tool error if `index` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index (discover valid indices with `channel_all`). |
channel_all List Channels
List every Channel Rack channel with its 0-based global index, name, controls, and mixer insert. Use this or `project_snapshot` first to map instrument names (e.g. '808 Kick') to 0-based channel indices before editing steps, notes, or routing. Read-only.
channel_get_swing Get Channel Rack Swing
Read FL Studio's global Channel Rack swing amount from 0.0 (straight) to 1.0 (maximum). Applies rack-wide to step-sequenced patterns; pair with `channel_set_swing` to adjust it. Requires FL Studio 2026+ (returns `ok=False` on FL 2024/2025).
channel_set_swing Set Channel Rack Swing
Set FL Studio's global Channel Rack swing knob affecting all step-sequenced channels (FL Studio 2026+). Use for groove-wide swing across step-sequencer rhythms; use `piano_roll_humanize` for subtle timing variation on individual piano-roll instruments. Values outside 0.0..1.0 are clamped; returns `ok=False` on FL 2024/2025.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Global Channel Rack swing amount from 0.0 (straight) to 1.0 (maximum swing); clamped if out of range. |
channel_selected Get Selected Channel
Return the 0-based global index and name of the currently selected Channel Rack channel. Returns null values if no channel is selected. Use `channel_select` to focus a specific channel or `channel_all` to inspect all channels in the rack. Read-only.
channel_select Select Channel
Select a Channel Rack channel by 0-based global index for editing or live MIDI input. Use `exclusive=True` for single-channel focus or `exclusive=False` to build a multi-selection; use `ui_scroll_to_channel` to scroll without changing selection or `ui_open_piano_roll_for_channel` to open its Piano Roll. Raises if `index` is invalid.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index to select. |
exclusive | boolean | If True (default), deselect all other channels first; if False, add this channel to the multi-selection. |
channel_set_volume Set Channel Volume
Set a Channel Rack channel's pre-mixer volume knob (0.0 to 1.0, where ~0.78 is default unity). Use for pre-FX gain trimming at the instrument source; prefer `mixer_set_volume_db` for calibrated mixing in decibels on the destination Mixer track. Values are clamped to 0.0..1.0 and undoable via `project_undo`; raises if `index` is invalid.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
volume * | number | Normalized Channel Rack volume knob from 0.0 (silent) to 1.0 (max); FL's default unity gain is ~0.78. |
channel_set_pan Set Channel Pan
Set a Channel Rack channel's stereo pan knob from -1.0 (left) to +1.0 (right). Use to pan an instrument before mixer effects; use `mixer_set_pan` to pan the channel's destination Mixer track instead. Values outside -1.0..1.0 are clamped; undoable via `project_undo`, raises on out-of-range `index`.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
pan * | number | Stereo pan position from -1.0 (hard left) through 0.0 (center) to +1.0 (hard right); clamped. |
channel_set_pitch Set Channel Pitch
Set a Channel Rack channel's live pitch knob offset in semitones. Adjusts the channel's pitch-bend offset via FL's cents mode; use `piano_roll_transpose` to permanently shift note pitches in the Piano Roll instead. Clamped to the channel's configured pitch range; raises on invalid `index`.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
semitones * | number | Pitch offset in semitones (positive = up, negative = down; clamped to the channel's configured pitch range, typically ±2 or ±12). |
channel_mute Mute or Unmute Channel
Mute, unmute, or toggle an individual Channel Rack instrument by 0-based global index. Pass `muted=True/False` for deterministic state or omit (`None`) to toggle. Use `mixer_mute` to mute a Mixer insert track, `playlist_mute_track` to mute a Playlist lane, or `channel_solo` to isolate one channel. Raises a tool error if `index` is invalid.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index (resolve via `channel_all`). |
muted | True to mute, False to unmute, or None/omit to toggle the current mute state. |
channel_solo Solo or Unsolo Channel
Solo, unsolo, or toggle solo on a Channel Rack instrument by 0-based global index. Soloing mutes all other Channel Rack instruments until unsoloed. Use `channel_mute` to silence only one channel, `mixer_solo` to solo a Mixer insert track, or `playlist_solo_track` to solo a Playlist lane. Raises if `index` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index (resolve via `channel_all`). |
solo | True to solo this channel (muting others), False to unsolo, or None/omit to toggle solo state. |
channel_set_name Rename Channel
Rename a Channel Rack instrument by its 0-based global index. Use `mixer_set_name` to rename a Mixer track, `pattern_rename` to rename a Pattern, or `playlist_set_track_name` to rename a Playlist lane. Raises a tool error if `index` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index to rename. |
name * | string | New display name for the channel (e.g. 'Sub Bass', 'Lead Synth'). |
channel_set_color Set Channel Color
Set the display color of a Channel Rack instrument by its 0-based global index. Use `mixer_set_color`, `pattern_set_color`, or `playlist_set_track_color` to color tracks or patterns on other FL surfaces. Raises a tool error on invalid `index` or malformed color string.
| Parameter | Type | Description |
|---|---|---|
color * | string | Color string as '#RRGGBB' hex (e.g. '#FF595E') or 'rgb(r,g,b)'. |
index * | integer | 0-based global Channel Rack index whose color will change. |
channel_route_to_mixer Route Channel to Mixer
Assign a Channel Rack instrument's audio output to a target Mixer track index. Prefer this tool when routing a known 0-based channel directly to a Mixer insert; use `mixer_link_to_channel` to link via FL's Mixer linking action, or `mixer_route` to create Mixer-to-Mixer bus sends. Out-of-range `mixer_track` raises a tool error (validated before calling FL, which otherwise clamps silently).
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index to route. |
mixer_track * | integer | Destination Mixer track index (0 = Master, 1..N = insert tracks; verify max track via `mixer_count`). |
channel_trigger_note Audition Channel Note
Trigger a live preview note on a 0-based Channel Rack instrument without editing patterns. Use to audition a sound or test a pitch; use `piano_roll_add_notes` to write permanent notes into a pattern. When `duration_ms > 0` and `velocity > 0`, the MCP server waits up to 5000 ms and guarantees a follow-up note-off even on interruption.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index to audition. |
note * | integer | MIDI note number 0..127 (60 = C4 / FL C5 depending on octave label). |
duration_ms | integer | Hold duration in milliseconds before sending automatic note-off (0..5000). Pass 0 to send only the immediate note event. |
velocity | integer | MIDI note velocity 0..127 (default 100; pass 0 to send note-off for a held note). |
channel_get_step_params Read Step Parameters
Read Graph Editor per-step parameters (velocity, pitch, pan, shift, repeat) for one step. Inspects a single 0-based step in the currently selected pattern; select the desired pattern with `pattern_select` first if needed. Pair with `channel_set_step_param` to edit values, or use `channel_get_step_sequence` to read only on/off hits. Read-only.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
step * | integer | 0-based 16th-note step index within the currently selected pattern (0..511). |
channel_set_step_param Set Step Parameter
Set a Graph Editor parameter (velocity, pitch, pan, shift, or hi-hat repeat) on one sequencer step. Operates on the currently selected pattern; use `channel_set_grid_bit` or `channel_set_step_sequence` to turn steps on first, and `channel_get_step_params` to read back. Raises a tool error on unsupported `param`, out-of-range `index`, or invalid `value`.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
param * | string | Graph Editor parameter name: 'pitch', 'velocity', 'release', 'pan', 'mod_x', 'mod_y' (0..127), 'fine_pitch' (0..240), 'shift' (ticks up to PPQ/4), or 'repeat' (FL repeat code 0..14). |
step * | integer | 0-based 16th-note step index in the currently selected pattern. |
value * | integer | Integer value for `param` (0..127 for velocity/pitch/pan/mod; 0..240 for fine_pitch; 0..PPQ/4 for shift; 0..14 for repeat rolls). |
channel_fill_steps Fill Sequencer Steps
Replace a channel's step sequence in the current pattern with evenly spaced hits every N steps. Starts at step 0 and overwrites existing hits on that channel in the selected pattern (e.g. `interval=4` for a 4-on-the-floor kick, `interval=2` for 8th-note hats). Use `channel_set_step_sequence` for custom rhythms or `gen_emit_drum_pattern_step_seq` for multi-channel genre grooves.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
interval * | integer | Step interval between hits (1..512): e.g. 2 = every 8th note, 4 = four-on-the-floor quarter notes. |
channel_get_grid_bit Read Sequencer Step
Check whether a single 0-based step-sequencer slot is active on a channel in the current pattern. Use for a single-step lookup; prefer `channel_get_step_sequence` to read the whole pattern's step array in one call, or `channel_get_step_params` for velocity/repeat values. Read-only.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
position * | integer | 0-based 16th-note step position within the currently selected pattern. |
channel_set_grid_bit Set Sequencer Step
Enable or clear a single 0-based step-sequencer hit on a channel in the active pattern. Use for surgical single-step tweaks; prefer `channel_set_step_sequence` to write an entire rhythm in one call or `channel_fill_steps` for regular intervals. Raises a tool error if `index` or `position` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
position * | integer | 0-based 16th-note step position in the currently selected pattern. |
value * | boolean | True to activate the step hit, False to clear it. |
channel_get_step_sequence Read Step Sequence
Read the full 0/1 step-sequencer array, step length, and 1-based pattern index for a channel. Use to inspect or verify drum patterns written via `channel_set_step_sequence` or `gen_emit_drum_pattern_step_seq`; use `piano_roll_read` instead if the channel holds Piano Roll notes rather than step-sequencer hits. Read-only.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
pattern | Optional 1-based pattern index to inspect; omit/None to read the currently selected pattern. |
channel_set_step_sequence Overwrite Step Sequence
Overwrite a channel's step-sequencer grid from step 0 using a list of 0/1 values. Overwrites steps `0..len(steps)-1` while leaving any later steps intact—call `channel_clear_step_sequence` first if shortening an existing pattern. Use `gen_emit_drum_pattern_step_seq` for preset multi-channel drum grooves, or `piano_roll_add_notes` for pitched melodies and chords.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
steps * | array | Ordered list of 0 (off) and 1 (on) step flags starting from step 0 (e.g. 16 values for one 4/4 bar). |
pattern | Optional 1-based pattern index to switch to before writing; omit/None to write into the currently selected pattern. |
channel_clear_step_sequence Clear Step Sequence
Clear every step-sequencer hit on one channel in the active or specified pattern. Use before replacing a rhythm with a shorter sequence; use `piano_roll_clear` to remove Piano Roll notes on a channel, or `pattern_clear` to wipe all channels in a pattern. Undoable via `project_undo`; raises if `index` or `pattern` is invalid.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index. |
pattern | Optional 1-based pattern index to clear; omit/None to clear in the currently selected pattern. |
channel_quick_quantize Quantize Channel Note Starts
Select a channel and snap its current-pattern note start times using FL Studio's Quick Quantize. Use for instant native grid alignment without opening the Piano Roll; use `piano_roll_quantize` when you need a specific grid subdivision (e.g. 1/16, 1/8T) or partial quantization strength. Undoable with `project_undo`.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index whose current-pattern notes will be quantized. |
mixer_count Count Mixer Tracks
Return total FL Studio Mixer track count (`count`, including Master at 0) and insert count (FL 2025.1+). Use to check valid Mixer track bounds before routing or editing—FL 2026 projects can have fewer than 125 inserts (default template has 16). Use `mixer_all_tracks` to list track names and fader levels. Read-only.
mixer_track_info Get Mixer Track Details
Read gain (normalized and dB), pan, mute/solo/arm, stereo separation, and FX slots for one Mixer track. Use to inspect or verify a single Mixer track after edits; use `mixer_all_tracks` to overview all active inserts, `mixer_get_eq` for 3-band track EQ, or `mixer_fx_slots` for per-slot wet/dry mix and bypass switches. Raises if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks; verify max index via `mixer_count`). |
mixer_all_tracks List Mixer Tracks
List FL Studio Mixer tracks with track indices (0 = Master), names, fader levels, and routing state. Use this or `project_snapshot` to resolve Mixer track names to numeric indices. Defaults to active/named tracks so responses stay compact; pass `include_empty=True` to locate free inserts for new routing. Read-only.
| Parameter | Type | Description |
|---|---|---|
include_empty | boolean | If False (default), omit unnamed default-named inserts with default settings; set True to return every Mixer track. |
mixer_set_volume Set Mixer Track Volume
Set a Mixer track's fader using FL Studio's normalized 0.0..1.0 position (0.8 = 0 dB unity). Prefer `mixer_set_volume_db` whenever working in decibels (it verifies exact dB readback); use this tool only when matching a raw normalized fader value or `channel_set_volume` for pre-mixer channel gain. Clamped to 0.0..1.0, undoable via `project_undo`; raises if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
volume * | number | Normalized FL Studio fader position from 0.0 (-inf dB) to 1.0 (+5.6 dB), where 0.8 equals 0.0 dB unity. |
mixer_set_pan Set Mixer Track Pan
Set a Mixer track's stereo pan knob from -1.0 (left) to +1.0 (right). Use to pan a post-FX Mixer bus or insert track; use `channel_set_pan` to pan an instrument pre-FX in the Channel Rack, or `mixer_set_stereo_separation` to widen or collapse stereo width to mono. Undoable via `project_undo`; raises on invalid `track`.
| Parameter | Type | Description |
|---|---|---|
pan * | number | Stereo pan from -1.0 (hard left) through 0.0 (center) to +1.0 (hard right); clamped. |
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
mixer_mute Mute or Unmute Mixer Track
Mute, unmute, or toggle an FL Studio Mixer track by index (0 = Master). Pass `muted=True/False` for deterministic state or omit (`None`) to toggle. Use `channel_mute` to mute a Channel Rack instrument, `playlist_mute_track` to mute a Playlist lane, or `mixer_solo` to isolate one Mixer track. Raises if `track` is invalid.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
muted | True to mute the Mixer track, False to unmute, or None/omit to toggle its current mute state. |
mixer_solo Solo or Unsolo Mixer Track
Solo, unsolo, or toggle solo on an FL Studio Mixer track by index. Soloing mutes all other Mixer inserts until unsoloed (left-on solos are flagged by `mixer_diagnose`). Use `mixer_mute` to silence one track, `channel_solo` for a Channel Rack instrument, or `playlist_solo_track` for a Playlist lane. Raises if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
solo | True to solo this Mixer track (muting other inserts), False to unsolo, or None/omit to toggle. |
mixer_arm Arm or Disarm Mixer Track
Arm, disarm, or toggle disk-recording arm state on an FL Studio Mixer track. Controls which Mixer tracks render/record audio when recording in FL Studio; pair with `transport_record` to start/stop global recording. Raises a tool error if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index to arm or disarm for disk audio recording (0 = Master, 1..N = insert tracks). |
armed | True to arm for audio recording, False to disarm, or None/omit to toggle arm state. |
mixer_set_name Rename Mixer Track
Rename an FL Studio Mixer track by index (0 = Master, 1..N = inserts). Use `channel_set_name` for Channel Rack instruments, `pattern_rename` for Patterns, or `playlist_set_track_name` for Playlist lanes. Raises a tool error if `track` is invalid.
| Parameter | Type | Description |
|---|---|---|
name * | string | New display label for the Mixer track (e.g. 'Drum Bus', 'Lead Vocal', 'Reverb Send'). |
track * | integer | Mixer track index to rename (0 = Master, 1..N = insert tracks). |
mixer_set_color Set Mixer Track Color
Set the display color of an FL Studio Mixer track by index. Use `channel_set_color`, `pattern_set_color`, or `playlist_set_track_color` for other FL Studio views. Raises a tool error on invalid `track` index or color syntax.
| Parameter | Type | Description |
|---|---|---|
color * | string | Color string as '#RRGGBB' hex (e.g. '#8338EC') or 'rgb(r,g,b)'. |
track * | integer | Mixer track index whose color will change (0 = Master, 1..N = insert tracks). |
mixer_set_stereo_separation Set Mixer Stereo Separation
Set a Mixer track's stereo separation knob from -1.0 (widest) to +1.0 (merged mono). Use `+1.0` to mono-sum sub-bass/kick tracks or negative values to widen pads/synths; use `mixer_set_pan` to move left/right balance. Clamped to -1.0..1.0 and undoable via `project_undo`; raises if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
separation * | number | Stereo separation from -1.0 (100% separated / widest) through 0.0 (original) to +1.0 (100% merged / mono); clamped. |
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
mixer_set_send_level Set Mixer Send Level
Set the audio send level (0.0..1.0) along an active route between two Mixer tracks. Enable the route with `mixer_route` first if the tracks are not yet connected; use `channel_route_to_mixer` to route a Channel Rack instrument to its initial Mixer insert. Clamped to 0.0..1.0; raises a tool error if either track index is out of range.
| Parameter | Type | Description |
|---|---|---|
dst_track * | integer | Destination Mixer bus/send track index receiving audio (0 = Master, 1..N = inserts). |
level * | number | Normalized send gain from 0.0 (silent) to 1.0 (max; 0.8 = 0 dB unity send). |
src_track * | integer | Source Mixer track index sending audio (1..N; cannot route Master to inserts). |
mixer_route Enable or Disable Mixer Route
Connect or disconnect an audio route (bus or sidechain send) between two Mixer tracks. Use to build drum/vocal buses or reverb sends, then adjust gain with `mixer_set_send_level`; use `channel_route_to_mixer` instead to assign a Channel Rack instrument to an insert. Disconnecting a track from Master without another route silences it (flagged by `mixer_diagnose`); raises on out-of-range tracks.
| Parameter | Type | Description |
|---|---|---|
dst_track * | integer | Destination Mixer track index (0 = Master, 1..N = bus/return insert). |
src_track * | integer | Source Mixer track index (1..N). |
enabled | boolean | True (default) to connect `src_track` to `dst_track`, False to disconnect the route. |
mixer_fx_slots List Mixer FX Slots
List all 10 FX slots (0..9) on a Mixer track with plugin names, IDs, enable switches, and wet/dry mix. Prefer this over `plugin_list_mixer_track` when you need per-slot `enabled` (bypass), `mix` (0..1 dry/wet), and the track-wide `slots_enabled` master FX switch; empty slots have `plugin_id=-1`. Pair with `mixer_set_slot` or `mixer_load_effect`.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
mixer_set_slot Set Mixer FX Slot
Enable/bypass a single loaded Mixer FX slot (0..9) and/or set its wet/dry Mix knob (0.0..1.0). Use `mixer_set_slots_enabled` to bypass all 10 slots on a track at once, or `plugin_set_param_value` to tune parameters inside the loaded effect. Reports the requested slot state (FL's mix readback lags within the same callback); raises on invalid `track` or `slot`.
| Parameter | Type | Description |
|---|---|---|
slot * | integer | 0-based FX slot index (0..9; inspect loaded slots with `mixer_fx_slots`). |
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
enabled | True to enable the FX slot, False to bypass it, or None/omit to leave unchanged. | |
mix | Wet/dry Mix knob from 0.0 (fully dry) to 1.0 (fully wet), or None/omit to leave unchanged. |
mixer_set_slots_enabled Enable or Bypass All FX Slots
Switch a Mixer track's master FX bypass button on (`enabled=True`) or off (`enabled=False`). Use for quick A/B comparison of a track's full FX chain; use `mixer_set_slot` to bypass only one individual slot (0..9). Raises a tool error if `track` is invalid.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
enabled | boolean | True to enable the track's entire FX rack, False to bypass all 10 FX slots at once. |
mixer_load_effect Load Effect into Mixer Track
Load an effect plugin or `.fst` preset into the next free FX slot (0..9) of a Mixer track. Use `plugin_search(kind='effect')` first if unsure of the exact plugin name, or `mixer_apply_chain` to load a curated multi-effect stock chain with checkpoints. Returns the 0-based slot index it landed in so you can tune it via `plugin_set_param_value(..., location='mixer')`; fails if all 10 slots are full or the preset cannot be resolved. (FL's API cannot load Channel Rack instruments.)
| Parameter | Type | Description |
|---|---|---|
plugin * | string | Effect name from FL's Plugin database (discover via `plugin_search`, e.g. 'Fruity Reeverb 2', 'Fruity Limiter', or a scanned VST) or absolute path to an `.fst` preset. |
track * | integer | Destination Mixer track index (0 = Master, 1..N = insert tracks). |
mixer_peaks Read Mixer Peak Meters
Take an instant snapshot of FL Studio Mixer peak meters (`left`/`right` linear, `peak_db` in dBFS, and `clipping`). Use for a single instantaneous meter reading while FL is playing; prefer `mixer_peak_watch` to hold true max peaks over several seconds of playback, or `mixer_diagnose` for a full actionable mix health report. Linear `1.0` = `0 dBFS` (above `1.0` clips). Read-only.
| Parameter | Type | Description |
|---|---|---|
include_silent | boolean | When `track` is omitted, set True to include silent (-inf dB) tracks; False (default) returns only tracks with signal. |
track | Optional single Mixer track index (0 = Master, 1..N = insert) to meter; omit/None to read all active tracks. |
mixer_set_volume_db Set Mixer Track Volume in dB
Set a Mixer track fader to an exact level in decibels and verify the result via readback. Preferred over `mixer_set_volume` for all mixing tasks; use `mixer_gain_stage` to balance all inserts and Master automatically from measured peaks. Undoable via `project_undo`; returns actual `volume_db`, `clamped`, and `verified` (within 0.05 dB).
| Parameter | Type | Description |
|---|---|---|
db * | number | Target fader level in decibels (0.0 = unity; FL faders span -inf to ~+5.6 dB). |
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
mixer_peak_watch Watch Mixer Peaks During Playback
Monitor FL Studio playback for 1–120 seconds and return the maximum held peak (dBFS) per Mixer track. Use when you need reliable held peak readings across a musical phrase or specific Playlist bar range; use `mixer_peaks` for a zero-wait instant snapshot or `mixer_diagnose` for full problem detection with fix recommendations. Temporarily starts/stops playback and restores original playhead, loop mode, and Playlist selection.
| Parameter | Type | Description |
|---|---|---|
end_bar | Optional 1-based exclusive end bar on the Playlist to loop during auditioning (must exceed `start_bar`). | |
play | boolean | If True (default), start playback when FL is stopped and stop again when finished; if False, monitor current playback state. |
seconds | number | Duration in seconds to monitor and hold peak levels (clamped to 1.0..120.0; default 8.0). |
start_bar | Optional 1-based inclusive start bar on the Playlist to audition (temporarily switches to Song mode and restores transport afterward). |
mixer_diagnose Diagnose Mix
Analyze the entire FL Studio mix and return prioritized clipping, headroom, routing, solo, and FX findings with fix calls. Best starting point for mixing assistance: checks Master clipping/headroom, hot inserts, unrouted tracks, stray solos, bypassed/off FX slots, muted active inserts, and channels routed straight to Master, returning `evidence`, `fix`, `tool`, and `args` for each issue. Pair with `mix_checkpoint_save` before applying fixes, or `audio_loudness_report` for integrated BS.1770 LUFS on a rendered file.
| Parameter | Type | Description |
|---|---|---|
end_bar | Optional 1-based exclusive Playlist bar to loop during diagnosis (must exceed `start_bar`). | |
listen_seconds | number | Seconds to play and hold peak meters before diagnosing (0 = use current instant meters; e.g. 8.0 for a full phrase). |
start_bar | Optional 1-based inclusive Playlist bar to start auditioning (defaults to 8 s if `listen_seconds=0`; restores transport afterward). |
mixer_select Select Mixer Track
Focus and highlight a single Mixer track in FL Studio's Mixer window. Use to bring a track's FX rack and EQ into view for the user; note that other `mixer_*` tools take an explicit `track` parameter and do not require selecting the track first. Does not create an undo entry; raises if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index to focus in FL Studio's Mixer (0 = Master, 1..N = insert tracks). |
mixer_get_eq Read Mixer EQ
Read all three built-in Mixer track EQ bands (0 = low, 1 = mid, 2 = high) in normalized and real units (dB, Hz). Returns `gain`, `frequency`, `bandwidth` (normalized) plus `gain_db` (dB) and `freq_hz` (Hz) for each band. Pair with `mixer_set_eq_band` to adjust track EQ, or use `plugin_params` to inspect a loaded parametric EQ plugin. Raises on invalid `track`.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
mixer_set_eq_band Set Mixer EQ Band
Adjust one band (0 = low, 1 = mid, 2 = high) of a Mixer track's built-in 3-band EQ in real or normalized units. Prefer `gain_db` (-18..+18 dB) and `freq_hz` (10..16000 Hz) over raw normalized `gain`/`frequency`; omit any field to keep its current value. Returns both normalized and real-unit readback; for surgical multi-band filtering, load `Fruity Parametric EQ 2` via `mixer_load_effect`.
| Parameter | Type | Description |
|---|---|---|
band * | integer | Built-in Mixer EQ band index: 0 = Low shelf, 1 = Mid peaking, 2 = High shelf. |
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
bandwidth | Optional normalized band width / Q (0.0..1.0); omit to keep current width. | |
freq_hz | Target band center/corner frequency in Hertz (10..16000 Hz). Preferred over `frequency`. | |
frequency | Optional normalized frequency (0.0..1.0). Prefer `freq_hz`. | |
gain | Optional legacy normalized gain passed directly to FL (0.5 = 0 dB flat). Prefer `gain_db`. | |
gain_db | Target band gain in decibels (-18.0..+18.0 dB, 0.0 = flat). Preferred over `gain`. |
mixer_link_to_channel Link Channel to Mixer Track
Link a 0-based Channel Rack instrument to a target Mixer track from the Mixer side. Equivalent to `channel_route_to_mixer` (prefer `channel_route_to_mixer` for simple channel routing, and `mixer_route` for Mixer-to-Mixer sends). Validates both `channel` and `track` bounds before applying and raises a tool error if out of range.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index to link to `track`. |
track * | integer | Destination Mixer track index (0 = Master, 1..N = insert tracks). |
mode | string | Legacy compatibility mode string (defaults to 'replace'); retained for backwards compatibility. |
mix_checkpoint_save Save Mix Checkpoint
Capture a named server-side snapshot of all Mixer controls, routing, EQ, FX slots, and optional FX parameters. Part of the `mixer` group's checkpoint workflow: call before major EQ, gain-staging, or FX-chain edits so you can inspect changes with `mix_checkpoint_diff` and roll back with verified readback via `mix_checkpoint_restore` (safer than repeated `project_undo` calls across many mixer tweaks). Fails if `name` is invalid or already exists.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique checkpoint name (alphanumeric, hyphens, underscores, e.g. 'before-mastering', 'rough-mix-v1'). |
include_plugin_params | boolean | If True (default), also snapshot automatable parameter values of every loaded mixer FX plugin. |
notes | string | Optional free-text description of this mix state for later comparison in `mix_checkpoint_list`. |
mix_checkpoint_list List Mix Checkpoints
List all saved server-side mix checkpoints with their names, timestamps, track counts, and notes. Use to find checkpoint names before calling `mix_checkpoint_diff` or `mix_checkpoint_restore`. Reads local checkpoint files without touching FL Studio.
mix_checkpoint_diff Compare Mix Checkpoints
Report exact Mixer parameter, EQ, routing, and FX differences between a checkpoint and the live Mixer (or another checkpoint). Use after mixing edits to review every changed track before committing or restoring with `mix_checkpoint_restore`. Read-only; raises a tool error if a checkpoint name does not exist.
| Parameter | Type | Description |
|---|---|---|
name * | string | Baseline saved checkpoint name (discover names via `mix_checkpoint_list`). |
other | Optional second saved checkpoint name to compare against; omit/None to diff `name` against the live FL Studio Mixer. |
mix_checkpoint_restore Restore Mix Checkpoint
Restore Mixer faders, pan, EQ, routing, FX slot states, and plugin parameters to a saved checkpoint with readback verification. Preview first with `dry_run=True` on large mixes. Always restore onto the same project the checkpoint was saved from. Because FL's API cannot remove loaded plugins, FX slots added after the checkpoint are bypassed rather than deleted; removing or replacing plugins requires FL Studio's UI.
| Parameter | Type | Description |
|---|---|---|
name * | string | Saved checkpoint name to restore (must match the currently open project; check `mix_checkpoint_list`). |
dry_run | boolean | If True, preview every restoration step without modifying FL Studio; if False (default), apply and verify by readback. |
mixer_gain_stage Stage Mixer Gain
Measure held peaks across active Mixer tracks and compute or apply peak-based gain staging to target dBFS headroom. Always preview with `dry_run=True` (default) first and get user approval before passing `dry_run=False`; applying automatically saves a `pre-gain-stage` mix checkpoint, adjusts inserts via `mixer_set_volume_db`, re-measures Master, adjusts Master, and verifies resulting peak headroom. Use `mixer_set_volume_db` instead for single-track fader adjustments.
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | If True (default), measure peaks and return proposed dB adjustments without moving faders; set False to apply with an automatic checkpoint. |
end_bar | Optional 1-based exclusive Playlist end bar to loop during metering (must exceed `start_bar`). | |
listen_seconds | number | Duration in seconds (1.0..120.0, default 8.0) to measure held peaks per pass. |
start_bar | Optional 1-based inclusive Playlist start bar to audition the loudest section (restores transport afterward). | |
target_insert_db | number | Target maximum peak ceiling in dBFS for active insert tracks (default -12.0 dBFS). |
target_master_db | number | Target maximum peak ceiling in dBFS for the Master bus after inserts are staged (default -6.0 dBFS). |
mixer_list_chains List Stock FX Chains
List built-in FL Studio stock FX chain recipes (names, purposes, plugins, slot mix, and real-unit targets). Call this before `mixer_apply_chain` to choose an appropriate chain name (such as vocal, drum bus, bass, or master limiter chains). Runs locally without calling FL Studio.
mixer_apply_chain Apply Stock FX Chain
Preview or apply a curated multi-plugin FL Studio stock FX chain onto a Mixer track with verified settings. Preview with `dry_run=True` (default) first; applying (`dry_run=False`) saves an automatic `pre-chain` mix checkpoint, appends each plugin via `mixer_load_effect`, sets wet/dry mix and real-unit parameters, and reports per-step verification. Use `mixer_load_effect` instead to load a single custom or third-party VST plugin.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Built-in stock FX chain name from `mixer_list_chains`. |
track * | integer | Destination Mixer track index (0 = Master, 1..N = insert tracks). |
dry_run | boolean | If True (default), return the planned stock `.fst` plugins, slot mix, and parameter targets without editing FL; set False to save a checkpoint and apply. |
plugin_search Search Installed Plugins
Search FL Studio's local Plugin database (stock plugins plus scanned VST/AU plugins) by name or category. Use to discover exact effect names before calling `mixer_load_effect`; use `plugin_list_mixer_track` or `mixer_fx_slots` to inspect plugins already loaded in the live project. Reads local `.fst` database files directly so FL Studio does not need to be running.
| Parameter | Type | Description |
|---|---|---|
kind | string | Filter plugin type: 'effect' (default, loadable via `mixer_load_effect`), 'generator' (instruments), or 'any'. |
limit | integer | Maximum number of matching plugins to return (clamped to >= 1; default 50). |
query | string | Case-insensitive substring or category keywords to match against FL's Plugin database (e.g. 'reverb', 'limiter', 'eq', 'fabfilter'; empty lists all). |
plugin_is_valid Check Plugin Slot
Verify whether a valid plugin is loaded at a specific Channel Rack channel or Mixer FX slot. Use before reading or modifying parameters when unsure if a slot is occupied; prefer `mixer_fx_slots` or `plugin_list_mixer_track` to inspect all 10 slots of a Mixer track at once, or `plugin_name` to read the loaded plugin's display name. Returns `valid=False` for empty slots without raising; raises if `index` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_name Get Plugin Name
Retrieve the display name of the plugin loaded at a Channel Rack index or Mixer FX slot. Pass `location='channel'` with a 0-based channel `index` (and `slot=-1`) for an instrument, or `location='mixer'` with a Mixer track `index` (0 = Master) and `slot` 0..9 for an effect. Use `plugin_list_mixer_track` to inspect every FX slot on a Mixer track in one call, or `plugin_search` to browse installed plugins not yet loaded. Returns an empty/null name or error if the slot is empty or `index` is invalid.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_param_count Count Plugin Parameters
Return the total count of automatable parameters exposed by a loaded channel or mixer plugin. Use to gauge parameter count before paginating with `plugin_params`; prefer `plugin_find_param` directly when you already know a keyword like 'wet', 'cutoff', or 'threshold'. Raises a tool error if the target slot is empty or out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_params List Plugin Parameters
List a plugin's automatable parameters with 0-based indices, names, normalized values, and display strings. Use to browse a plugin's full control surface (paginate with `offset`/`limit` on large synths); prefer `plugin_find_param` when searching for a specific control by name, or `plugin_get_param` to read back one known index. Raises if the slot is empty.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
limit | integer | Page size — maximum number of parameters to return starting from `offset` (default 128). |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
offset | integer | 0-based starting parameter index for pagination (default 0). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_get_param Read Plugin Parameter
Read one plugin parameter's current normalized value (0.0..1.0) and FL display string (e.g. '-6.0 dB'). Use to inspect or verify a single parameter after calling `plugin_set_param` or `plugin_set_param_value`; use `plugin_params` to read many parameters at once. Raises a tool error if the plugin slot is empty or `param` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
param * | integer | 0-based automatable parameter index (discover indices with `plugin_find_param` or `plugin_params`). |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_set_param Set Plugin Parameter
Set a plugin parameter using a raw normalized float between 0.0 and 1.0. Prefer `plugin_set_param_value` whenever you want real-world units like '-3 dB', '120 Hz', or '35%'; use this tool for stepped switches, non-numeric modes, or exact normalized positions, and use `automation_record_plugin_param` to record time-varying ramps. Raises a tool error if the slot is empty or `param` is out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
param * | integer | 0-based automatable parameter index (discover via `plugin_find_param` or `plugin_params`). |
value * | number | Normalized parameter value between 0.0 and 1.0 (clamped to 0.0..1.0). |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_set_param_value Set Plugin Parameter in Real Units
Set a plugin parameter directly in its displayed real-world units (dB, Hz, ms, %) via binary search. Preferred over `plugin_set_param` for continuous musical parameters: the bridge bisects the normalized value against FL's live display string and returns `value_string`, `verified` (within 1%), and `clamped` (if outside `range`). Stepped or non-numeric parameters return `verified=False`—use `plugin_set_param` for those.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
param * | integer | 0-based automatable parameter index (discover via `plugin_find_param` or `plugin_params`). |
target * | string | Desired parameter value in FL Studio's displayed units (e.g. '-6 dB', '2.5 kHz', '120 ms', '35%', or a bare number). |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_find_param Find Plugin Parameters by Name
Search a loaded plugin's automatable parameters by case-insensitive name substring. Fastest way to find the 0-based `param` index needed for `plugin_set_param_value` or `plugin_set_param` without dumping hundreds of synth parameters via `plugin_params`. Returns an empty list if no parameter name matches; raises if the slot is empty.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
name_contains * | string | Case-insensitive substring to match against parameter names (e.g. 'wet', 'decay', 'cutoff', 'ceil', 'gain'). |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_preset_count Count Plugin Presets
Return the number of built-in presets exposed by a loaded channel or mixer plugin. Use before cycling presets with `plugin_next_preset` or `plugin_prev_preset` (some third-party VSTs report 0 presets to FL's scripting API). Read-only; raises if the target slot is empty or out of range.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_next_preset Load Next Plugin Preset
Advance a loaded channel or mixer plugin to its next built-in preset, overwriting current parameter tweaks. FL's public scripting API exposes only relative preset stepping (`plugin_next_preset` / `plugin_prev_preset`), not jumping to a named preset. Save a `mix_checkpoint_save` first for mixer FX so you can roll back if the preset sounds worse. Raises if empty.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_prev_preset Load Previous Plugin Preset
Step a loaded channel or mixer plugin back to its previous built-in preset, overwriting current parameters. Pair with `plugin_next_preset` and `plugin_preset_count`. Consider saving a `mix_checkpoint_save` first for mixer FX before changing presets. Raises if empty.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_show_editor Show or Hide Plugin Editor
Open, close, or toggle the GUI editor window of a specific Channel Rack or Mixer FX plugin. Pass `show=True/False` for deterministic visibility or omit (`None`) to toggle. Use `ui_show_window` / `ui_hide_window` for FL's main panels (Mixer, Piano Roll, Playlist). Note: focusing a plugin with its own transport (like Edison) can capture spacebar playback until another window is focused.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N = insert) when `location='mixer'`. |
location | string | Where the plugin lives: 'channel' (Channel Rack instrument/generator, default) or 'mixer' (Mixer FX slot, requires `slot` 0..9). |
show | True to open the plugin GUI window, False to close it, or None/omit to toggle visibility. | |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 (default) when `location='channel'`. |
plugin_list_mixer_track List Mixer Track Plugins
List every loaded plugin name and 0-based FX slot index (0..9) on one Mixer track. Use as a compact lookup of what effects are loaded on a track; prefer `mixer_fx_slots` when you also need each slot's `enabled` bypass flag, wet/dry `mix` level, and the track-wide `slots_enabled` switch. Raises on invalid `track`.
| Parameter | Type | Description |
|---|---|---|
track * | integer | Mixer track index (0 = Master, 1..N = insert tracks). |
plugin_fpc_pads Read FPC Drum Pads
Read pad count, mapped MIDI note numbers, colors, empty flags, and mute states from an FPC drum channel. Use before writing piano-roll drum notes (`gen_emit_drum_pattern_notes` or `piano_roll_add_notes`) onto an FPC channel so every drum hit targets the exact populated pad MIDI notes. Returns a structured error if `index` does not host FPC.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based global Channel Rack index hosting an Image-Line FPC drum pad instrument. |
playlist_track_count Count Playlist Tracks
Return the total number of Playlist track lanes in the current FL Studio project. Use for bounds checks on 1-based Playlist track indices; use `playlist_all_tracks` to list named/active tracks with mute, solo, and color metadata. Read-only.
playlist_track_info Get Playlist Track Details
Read name, color, mute/solo state, and display height for one 1-based Playlist track. Use for a single Playlist lane lookup; use `playlist_all_tracks` to fetch all active lanes at once, or `mixer_track_info` for Mixer audio tracks. Raises a tool error if `track` is out of range (must be >= 1).
| Parameter | Type | Description |
|---|---|---|
track * | integer | 1-based Playlist track lane index (discover active indices via `playlist_all_tracks`). |
playlist_all_tracks List Playlist Tracks
List FL Studio Playlist track lanes with 1-based indices, names, colors, and mute/solo states. Omits unnamed tracks by default to keep responses compact; pass `include_empty=True` to inspect blank lanes. Note: FL's live scripting API cannot enumerate or edit Playlist clips—use `project_inspect_flp` on a saved `.flp` to read clip placements offline.
| Parameter | Type | Description |
|---|---|---|
include_empty | boolean | If False (default), omit unnamed default tracks; set True to return every Playlist track slot. |
playlist_set_track_name Rename Playlist Track
Rename a 1-based Playlist track lane in FL Studio. Use `channel_set_name` for Channel Rack instruments, `mixer_set_name` for Mixer insert tracks, or `pattern_rename` for Patterns. Raises a tool error if `track` is out of range (< 1).
| Parameter | Type | Description |
|---|---|---|
name * | string | New display label for the Playlist lane (e.g. 'Drums', 'Hook Vocals'). |
track * | integer | 1-based Playlist track lane index to rename. |
playlist_set_track_color Set Playlist Track Color
Set the display color of a 1-based Playlist track lane in FL Studio. Use `channel_set_color`, `mixer_set_color`, or `pattern_set_color` for other FL Studio surfaces. Raises a tool error on invalid `track` index or unparseable color.
| Parameter | Type | Description |
|---|---|---|
color * | string | Target color as '#RRGGBB' hex (e.g. '#06D6A0') or 'rgb(r,g,b)'. |
track * | integer | 1-based Playlist track lane index to color. |
playlist_mute_track Mute or Unmute Playlist Track
Mute, unmute, or toggle a 1-based Playlist track lane in FL Studio. Mutes clips placed on that Playlist lane during Song-mode playback. Use `mixer_mute` to mute a Mixer audio track or `channel_mute` to mute a Channel Rack instrument; use `playlist_solo_track` to isolate one lane. Raises if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | 1-based Playlist track lane index (resolve via `playlist_all_tracks`). |
muted | True to mute the lane, False to unmute, or None/omit to toggle its mute state. |
playlist_solo_track Solo or Unsolo Playlist Track
Solo, unsolo, or toggle solo on a 1-based Playlist track lane in FL Studio. Soloing mutes all other Playlist lanes during Song-mode playback. Use `mixer_solo` to solo a Mixer track or `channel_solo` to solo a Channel Rack instrument. Raises a tool error if `track` is out of range.
| Parameter | Type | Description |
|---|---|---|
track * | integer | 1-based Playlist track lane index (resolve via `playlist_all_tracks`). |
solo | True to solo this lane, False to unsolo, or None/omit to toggle its solo state. |
playlist_refresh Refresh Playlist Display
Force FL Studio to repaint the Playlist window after bulk track or marker updates. Call after renaming/coloring multiple Playlist lanes if FL's UI lags visually. Idempotent and does not alter project audio or undo history.
playlist_list_markers Check Timeline Marker Availability
List all Playlist timeline marker names in chronological order starting at index 0. FL Studio's live scripting API exposes marker names in order but not their bar positions—use `arrangement_jump_marker` to navigate between them live, or `project_inspect_flp` on a saved `.flp` to read exact marker tick positions offline.
playlist_add_marker Add Timeline Marker
Insert a named time marker on FL Studio's Playlist timeline at a bar offset. Use to label arrangement sections for navigation with `arrangement_jump_marker` and `playlist_list_markers`. Note: FL's public API cannot delete markers once added (undo with `project_undo` or remove in FL's Playlist header).
| Parameter | Type | Description |
|---|---|---|
position_bars * | number | 0-based bar offset from the start of the Playlist timeline (4 quarter notes per bar; e.g. 0.0 = bar 1, 8.0 = bar 9). |
name | string | Display label for the new timeline marker (e.g. 'Chorus', 'Drop', 'Bridge'). |
arrangement_set_selection Select Playlist Section
Select a 1-based bar range `[start_bar, end_bar)` on FL Studio's Playlist timeline. Use to loop a specific chorus/verse for playback, `mixer_diagnose`, or `mixer_peak_watch`; call `arrangement_clear_selection` afterward to remove the timeline selection. Converts bars using the project's current time signature; raises if `end_bar <= start_bar`.
| Parameter | Type | Description |
|---|---|---|
end_bar * | number | 1-based exclusive end bar on the Playlist timeline (must be greater than `start_bar`, e.g. 17.0 selects bars 9–16). |
start_bar * | number | 1-based inclusive start bar on the Playlist timeline (e.g. 1.0 = beginning of bar 1, 9.0 = bar 9). |
arrangement_clear_selection Clear Playlist Selection
Remove the active Playlist timeline loop selection in FL Studio. Use after auditioning or diagnosing a bar range set with `arrangement_set_selection` so playback returns to the full song. Idempotent and safe when no selection is active.
arrangement_current Current Arrangement
Read the active Playlist arrangement index and display name in FL Studio. Use in multi-arrangement projects to verify which arrangement is open before diagnosing, marking, or seeking; FL Studio's public scripting API cannot enumerate or switch inactive arrangements (use `project_inspect_flp` offline on a saved `.flp` to list all arrangements). Read-only.
arrangement_jump_marker Jump to Timeline Marker
Move FL Studio's playhead to the next (+1) or previous (-1) Playlist timeline marker. Use with `playlist_list_markers` (FL exposes marker names in order but not their bar positions); use `transport_set_position` to jump to an exact bar or second, or `transport_jog` for 16th-note nudges.
| Parameter | Type | Description |
|---|---|---|
direction | integer | Marker navigation direction: +1 jumps to the next timeline marker, -1 jumps to the previous marker. |
arrangement_play_time Read Arrangement Playback Time
Read the active arrangement's current playhead time in ticks, bars, and seconds. Use when inspecting timeline position relative to arrangements and markers; use `transport_status` if you also need playing/recording state, loop mode, and BPM. Read-only.
automation_record_tempo Record Tempo Automation
Record a live master tempo automation curve into FL Studio across the given `{time_bars, bpm}` points. Use for dynamic tempo ramps or drops; use `transport_set_tempo` for a single static project BPM. Arms FL's Record, plays from the current position (in Song mode creates automation clips; in Pattern mode writes into the looping pattern, so keep points within its length), and stops after the final point. Automatically answers FL's "What would you like to record?" prompt with "Notes and automation" on Windows; elsewhere answer it within 20 s and ensure FL's recording filter has Automation enabl…
| Parameter | Type | Description |
|---|---|---|
points * | array | Ordered list of `{time_bars: float, bpm: float}` breakpoints (time offset from playback start in bars, target tempo in BPM). |
automation_record_channel_volume Record Channel Volume Automation
Record live pre-mixer volume automation (0.0..1.0) on a 0-based Channel Rack instrument. Use for dynamic fades/swells on a channel; use `channel_set_volume` for a static level or `automation_record_mixer_volume` to automate the post-FX Mixer fader. Arms FL's Record, plays from the current playhead until the last `time_bars` point, and stops automatically (creates Song-mode automation clips or Pattern-mode events; auto-answers the Record prompt on Windows).
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose volume knob will be automated. |
points * | array | Ordered list of automation breakpoints `{time_bars: float, value: float}` where `time_bars` counts from playback start (>= 0) and `value` is normalized 0.0..1.0. |
automation_record_channel_pan Record Channel Pan Automation
Record live stereo pan automation (-1.0 left to +1.0 right) on a 0-based Channel Rack instrument. Use for rhythmic auto-panning or stereo sweeps; use `channel_set_pan` for a fixed pan position. Arms FL's Record, plays live from the current playhead position while injecting REC events, and stops after the last point (auto-answers FL's Record prompt on Windows; revert with `project_undo`).
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose stereo pan knob will be automated. |
points * | array | Ordered list of automation breakpoints `{time_bars: float, value: float}` where `time_bars` counts from playback start (>= 0) and `value` spans -1.0 (left) to +1.0 (right). |
automation_record_mixer_volume Record Mixer Volume Automation
Record live post-FX fader automation (0.0..1.0, where 0.8 = 0 dB) on a Mixer track. Use for dynamic mix rides, intro fade-ins, or drop boosts; use `mixer_set_volume_db` for static fader levels or `automation_record_channel_volume` for pre-FX channel automation. Arms FL's Record, plays from the current position until the final point, and stops (creates automation clips in Song mode; auto-answers Record prompt on Windows).
| Parameter | Type | Description |
|---|---|---|
points * | array | Ordered list of automation breakpoints `{time_bars: float, value: float}` where `time_bars` counts from playback start (>= 0) and `value` is normalized 0.0..1.0. |
track * | integer | Mixer track index whose fader will be automated (0 = Master, 1..N = insert tracks). |
automation_record_plugin_param Record Plugin Parameter Automation
Record live normalized automation (0.0..1.0) on any Channel Rack or Mixer FX plugin parameter. Use for filter cutoff sweeps, reverb wet throws, or build-up risers; use `plugin_set_param_value` or `plugin_set_param` for a static setting. Arms FL's Record, plays live across `points`, and stops automatically (creates Song-mode automation clips or Pattern-mode events; auto-answers FL's Record prompt on Windows).
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index when `location='channel'`, or Mixer track index (0 = Master, 1..N) when `location='mixer'`. |
param * | integer | 0-based automatable plugin parameter index (resolve via `plugin_find_param` or `plugin_params`). |
points * | array | Ordered list of automation breakpoints `{time_bars: float, value: float}` where `time_bars` counts from playback start (>= 0) and `value` is normalized 0.0..1.0. |
location | string | Target plugin location: 'channel' (Channel Rack synth/generator, default) or 'mixer' (Mixer FX slot). |
slot | integer | 0-based Mixer FX slot index (0..9) when `location='mixer'`; keep -1 when `location='channel'`. |
project_inspect_flp Inspect Saved FL Studio Project
Parse a saved `.flp` project file offline without requiring FL Studio to be open. Returns PPQ, tempo, channels and sample paths, patterns, mixer track names, arrangements, numbered Playlist tracks, clip placements, and marker tick positions— filling gaps that FL's live scripting API cannot expose (such as Playlist clips and marker coordinates). Use `project_snapshot` instead for live unsaved FL Studio state. Raises a tool error if `path` does not exist or is not a valid FLP file.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative filesystem path to an existing saved `.flp` project file. |
project_snapshot Read Project Snapshot
Read project metadata, transport state, patterns, channel routing, and active mixer tracks in one call. Best first read-only call after `fl_ping` to orient on a live project without issuing four separate calls; use `project_metadata` for a lighter summary or `project_inspect_flp` to inspect Playlist clips and markers in a saved `.flp` offline.
project_metadata Read Project Overview
Read project title/author/genre (FL 2026+), tempo, PPQ, counts, selection, and transport state. Lighter alternative to `project_snapshot` when you only need top-level project counters, tempo, and time signature without listing every channel, pattern, and mixer track. Read-only.
project_save Save Current Project
Trigger FL Studio's Save command for the currently open project file. Overwrites the current `.flp` on disk (if the project is untitled, FL Studio opens a Save As dialog that pauses the bridge until the user responds). Use `project_save_as` to prompt for a new filename, or `mix_checkpoint_save` for a reversible in-session mixer snapshot.
project_save_as Save Project As
Open FL Studio's Save As dialog so the user can save the project to a new `.flp` path. Use `project_save` to save in place without prompting. Because FL Studio's modal Save As dialog blocks bridge callbacks until dismissed, tell the user to confirm the filename in FL Studio before sending further tool calls.
| Parameter | Type | Description |
|---|---|---|
path * | string | Suggested destination `.flp` path; FL Studio displays its Save As dialog for the user to confirm. |
project_undo Undo Project Edit
Step backward one entry on FL Studio's project undo stack. Use to revert a recent tempo, volume, piano-roll, or pattern edit; use `project_redo` to re-apply an undone step, `project_undo_history` to inspect stack depth, or `mix_checkpoint_restore` to roll back a multi-step mixing session cleanly.
project_redo Redo Project Edit
Step forward one entry on FL Studio's project undo stack to re-apply an undone edit. Pair with `project_undo` and `project_undo_history`. Has no effect when already at the top of the undo history.
project_undo_history Read Project Undo History
Read FL Studio's undo stack count, current position, and latest undo entry description. Use before calling `project_undo` or `project_redo` to verify what edit will be reverted, or after `project_save_undo` to confirm a checkpoint was recorded. Read-only.
project_save_undo Create Undo Checkpoint
Push a named checkpoint onto FL Studio's native undo stack before a multi-step edit. Use before bulk channel, pattern, or automation changes so the user can undo back to a labeled state via `project_undo`; for mixer-specific snapshots with diffing and verified readback rollback, prefer `mix_checkpoint_save`.
| Parameter | Type | Description |
|---|---|---|
name * | string | Descriptive label for the undo history entry shown in FL Studio (e.g. 'Before drum edits'). |
flags | integer | Optional FL Studio undo bitmask flags passed to `general.saveUndo` (0 = default general checkpoint). |
project_render Render Project Audio
Render a saved `.flp` project to WAV, MP3, FLAC, or OGG using FL Studio's CLI while interactive FL is closed. Use to bounce audio offline for `audio_loudness_report` or `audio_compare_reference`. Interactive FL Studio must be closed first (otherwise FL exits silently without writing audio—this tool detects a running FL process and reports it clearly). Forced pattern-only bounces and split mixer stems require FL Studio's GUI Export dialog.
| Parameter | Type | Description |
|---|---|---|
flp_path | Path to the saved `.flp` project to render via FL Studio's CLI (required unless passed via legacy `path` ending in `.flp`). | |
format | string | Output audio file format: 'wav' (default, lossless PCM—best for `audio_loudness_report`), 'mp3', 'flac', or 'ogg'. |
mode | string | Render scope: 'song' (default, uses FL's saved project export context). Note: FL's CLI cannot force pattern-only mode—use FL's Export dialog for pattern-only bounces. |
output_path | Optional destination audio file path; omit to write a sibling file next to `flp_path` using the chosen `format` extension. | |
path | Legacy alias for `output_path` (or for `flp_path` if `flp_path` is omitted and `path` ends with `.flp`). Prefer explicit `flp_path` and `output_path`. | |
split_mixer_tracks | boolean | Request separate mixer stems (unsupported by FL Studio's CLI; returns a structured error directing to FL's Export dialog if True). |
timeout_sec | number | Maximum wait time in seconds for FL Studio's headless CLI render process before aborting (default 180.0). |
project_version Get FL Studio Version
Return the running FL Studio application version string and scripting API version number. Use to check FL 2024 vs 2025 vs 2026 compatibility (API 45+ enables pattern length/ clear/move, float tempo, channel swing, and plugin mute); use `fl_introspect` to check individual FL scripting functions or `fl_bridge_info` for bridge diagnostics.
ui_focused_window Get Focused FL Studio Window
Return the active window type, caption, and focus state inside FL Studio. Use to verify which FL window or plugin currently holds focus (for example before diagnosing modal dialogs or piano-roll focus); use `ui_show_window` to focus a specific panel or `ui_selected_channel` to check Channel Rack selection. Read-only.
ui_show_window Show FL Studio Window
Open and optionally focus one of FL Studio's main workspace windows. Use to display the Mixer, Channel Rack, Playlist, or Piano Roll; use `ui_open_piano_roll_for_channel` to target a specific channel's piano roll or `plugin_show_editor` to open a specific plugin GUI. Does not alter project audio or create an undo entry.
| Parameter | Type | Description |
|---|---|---|
name * | string | FL Studio window to show: 'mixer', 'channel_rack', 'playlist', 'piano_roll', 'browser', 'plugin', 'plugin_generator', or 'plugin_effect'. |
focus | boolean | Bring keyboard focus to the window after showing it (True by default). |
ui_hide_window Hide FL Studio Window
Hide or close one of FL Studio's main workspace windows by name. Use to clear floating panels or declutter the workspace; use `plugin_show_editor` with `show=False` to close a specific plugin's editor window. Safe to call when the window is already hidden; does not modify project data.
| Parameter | Type | Description |
|---|---|---|
name * | string | FL Studio window to close/hide: 'mixer', 'channel_rack', 'playlist', 'piano_roll', 'browser', 'plugin', 'plugin_generator', or 'plugin_effect'. |
ui_hint Display FL Studio Hint
Show a transient status message in FL Studio's top-left hint bar. Use to give the user live progress feedback during multi-step sessions or ask them to answer a prompt in FL Studio. Overwrites the hint display temporarily without modifying the project or undo history.
| Parameter | Type | Description |
|---|---|---|
message * | string | Short status text to display in FL Studio's top-left hint bar. |
ui_show_picker Open Plugin or Project Picker
Open FL Studio 2026's Plugin Picker or Project Picker overlay for the user. Use `mode='plugin'` when the user needs to load a Channel Rack instrument (FL's scripting API can load mixer effects via `mixer_load_effect`, but cannot load instruments into the Channel Rack). Returns `ok=False` on FL versions lacking the API.
| Parameter | Type | Description |
|---|---|---|
mode | string | Picker panel to open: 'plugin' (instrument/effect picker) or 'project' (pattern/clip picker). |
ui_open_piano_roll_for_channel Open Channel Piano Roll
Select a channel (and optionally a pattern) and open its Piano Roll window in FL Studio. Note that `piano_roll_*` tools already accept `channel` and `pattern` directly and open the target automatically; use this standalone tool when preparing the UI for manual user inspection or before calling tools that operate on the open piano roll. Raises a tool error if `channel` or `pattern` is out of range.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose piano roll will be opened. |
pattern | Optional 1-based pattern index to select before opening the piano roll; omit to keep the current pattern. |
ui_selected_channel Get Selected Channel from UI
Return the 0-based global index and name of the channel currently focused in the UI. Equivalent to `channel_selected` from the UI namespace; use `channel_all` to inspect every channel in the Channel Rack or `channel_select` to change selection. Read-only.
ui_scroll_to_channel Scroll to Channel
Scroll FL Studio's Channel Rack viewport so the specified 0-based channel is visible. Use to bring an off-screen instrument into view without necessarily changing mixer focus; use `channel_select` to select the channel for editing or MIDI input. Does not alter audio or undo history; raises if `channel` is out of range.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index to scroll into view. |
piano_roll_status Check Piano Roll Bridge
Check whether the `ComposeWithLLM.pyscript` Piano Roll bridge is installed and inspect its last state. Use to diagnose Piano Roll script setup or check the last execution output without triggering FL Studio; use `fl_ping` to check both the MIDI bridge and Piano Roll script together. Read-only and runs locally.
piano_roll_add_notes Add Piano Roll Notes
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`.
| Parameter | Type | Description |
|---|---|---|
notes * | array | 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`, `pitcho… |
channel | 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. | |
clear_first | boolean | If True, erase all existing notes in the target Piano Roll before writing; False (default) appends. |
pattern | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
piano_roll_add_chord Add Piano Roll Chord
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`.
| Parameter | Type | Description |
|---|---|---|
midi_notes * | array | 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`). |
attributes | Optional extra FL Studio native note properties (`pan`, `color`, `slide`, `porta`, `fcut`, `fres`, `pitchofs`, `release`, `muted`) applied to all notes in the chord. | |
channel | 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. | |
duration_bars | number | Shared chord duration in project bars (default 1.0 = one full bar). |
pattern | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. | |
time_bars | number | 0-based chord start position in project bars (e.g. 0.0 = bar 1 beat 1, 1.0 = bar 2 beat 1). |
velocity | number | Shared normalized note velocity from 0.0 to 1.0 (default 0.8). |
piano_roll_add_arpeggio Add Piano Roll Arpeggio
Append a sequenced arpeggio built from explicit MIDI pitches directly into a Piano Roll. Use when you already have exact MIDI pitches; prefer `gen_emit_arpeggio` to generate an arpeggio automatically across a named key, scale, and chord progression. Appends without clearing existing notes; verify with `piano_roll_read`.
| Parameter | Type | Description |
|---|---|---|
midi_notes * | array | Ordered list of MIDI note pitches (0..127) to step through sequentially. |
channel | 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. | |
direction | string | Arpeggio traversal order: 'up' (as given), 'down' (reversed), 'updown' (bounce without repeating peaks), or 'random'. |
note_duration_bars | number | Duration of each individual arpeggio note in project bars (default 0.25). |
pattern | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. | |
repeats | integer | Number of cycles to repeat the arpeggio sequence (>= 1, default 1). |
step_bars | number | Time spacing between consecutive arpeggio notes in project bars (e.g. 0.0625 = 16th notes in 4/4, 0.25 = quarter notes). |
time_bars | number | 0-based start offset in project bars (default 0.0). |
velocity | number | Normalized velocity from 0.0 to 1.0 for every generated note (default 0.8). |
piano_roll_edit_notes Edit Matching Piano Roll Notes
Modify velocity, timing, duration, pitch, or native FL attributes on filtered Piano Roll notes in place. Preserves all untouched FL Studio note fields and requires an explicit target (`channel` or open Piano Roll); use `piano_roll_transpose` to shift all notes by semitones quickly, `piano_roll_quantize` for grid snapping, or `piano_roll_delete_notes` to remove notes. Raises if `updates` has no fields set.
| Parameter | Type | Description |
|---|---|---|
updates * | Mutations to apply to each matching note (at least one field required: `velocity`, `velocity_delta`, `duration_bars`, `time_delta_bars`, `transpose`, `pan`, `slide`, `porta`, `color`, `fcut`, `fres`,… | |
channel | 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. | |
filters | Optional filter selecting which notes to modify (`midi`, `midi_min`/`midi_max`, `start_bars`/`end_bars`, `color`, `matches`); omit/None to update every note in the Piano Roll. | |
pattern | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
piano_roll_delete_notes Delete Matching Piano Roll Notes
Remove specific notes matching `{midi, time_bars}` from a channel's Piano Roll. Read exact pitches and `time_bars` with `piano_roll_read` first to target the right notes; use `piano_roll_clear` to erase every note in the channel's Piano Roll at once. Undoable via `project_undo`.
| Parameter | Type | Description |
|---|---|---|
notes * | array | List of `{midi: int, time_bars: float}` descriptors identifying notes to delete (matches notes within 1/16 quarter note of `time_bars`). |
channel | 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 | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
piano_roll_clear Clear Piano Roll
Delete every note from a single channel's Piano Roll in the active or specified pattern. Always pass `channel` (and `pattern`) to avoid wiping the wrong instrument. Use `piano_roll_delete_notes` to remove individual notes, `channel_clear_step_sequence` for step-sequencer grids, or `pattern_clear` to wipe every channel in a pattern. Undoable via `project_undo`.
| Parameter | Type | Description |
|---|---|---|
channel | 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 | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
piano_roll_read Read Piano Roll Notes
Read all notes currently in a channel's Piano Roll with pitches, bar/quarter timing, duration, and velocity. Call before appending or editing notes (to avoid collisions) and after any write to verify results; use `channel_get_step_sequence` instead for Channel Rack step sequencer grids. Runs `ComposeWithLLM.pyscript` in read-only export mode (5 s wait); if `ok=False`, inspect the returned `note` (on macOS without Accessibility permission, trigger Tools > Scripts > ComposeWithLLM once in FL).
| Parameter | Type | Description |
|---|---|---|
channel | 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 | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
piano_roll_quantize Quantize Piano Roll Notes
Snap Piano Roll note start times toward a bar-based musical grid with configurable strength. Use when you need a specific grid subdivision or partial groove-preserving strength; use `channel_quick_quantize` for instant native FL quantize without opening the Piano Roll, or `piano_roll_humanize` to add subtle timing feel. Undoable via `project_undo`.
| Parameter | Type | Description |
|---|---|---|
channel | 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. | |
grid_bars | number | Quantization grid spacing in project bars (e.g. 0.0625 = 1/16 note in 4/4, 0.125 = 1/8 note, 0.25 = quarter note). |
pattern | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. | |
strength | number | Pull strength from 0.0 (no change) to 1.0 (hard snap onto grid; default 1.0). |
piano_roll_transpose Transpose Piano Roll Notes
Transpose every note in a channel's Piano Roll up or down by an integer number of semitones. Use to shift an entire melodic or chord part to a new key or octave; use `piano_roll_edit_notes` with `filters` + `transpose` to shift only selected notes, or `channel_set_pitch` to adjust the live pitch knob without moving MIDI notes. Notes clamp to MIDI 0..127; undoable via `project_undo`.
| Parameter | Type | Description |
|---|---|---|
semitones * | integer | Signed pitch shift in semitones applied to every note (e.g. +12 = up one octave, -2 = down a whole step). |
channel | 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 | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
piano_roll_humanize Humanize Piano Roll Notes
Add controlled random timing and velocity micro-variations to Piano Roll notes for natural feel. Use after quantized note entry or generators to soften robotic phrasing; use `channel_set_swing` for rhythmic swing across step-sequenced patterns, or `piano_roll_quantize` to tighten timing back toward the grid. Undoable via `project_undo`.
| Parameter | Type | Description |
|---|---|---|
channel | 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 | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. | |
timing_jitter_bars | number | Maximum random start-time offset in project bars (default 0.02; ~0.005–0.015 is subtle in 4/4). |
velocity_jitter | number | Maximum random normalized velocity variation in 0.0..1.0 (default 0.1). |
piano_roll_duplicate Duplicate Piano Roll Notes
Copy all Piano Roll notes starting within `[source_time_bars, source_time_bars + length_bars)` to `dest_time_bars`. Use to extend a phrase on one channel (e.g. copying bars 0–2 to bars 2–4 before adding a variation); use `pattern_duplicate_data` to double every channel in the entire pattern at once. Appends at `dest_time_bars` without clearing existing notes.
| Parameter | Type | Description |
|---|---|---|
dest_time_bars * | number | 0-based destination bar offset where the copied notes will be placed (e.g. 2.0). |
length_bars * | number | Length of the source bar window in project bars (> 0, e.g. 2.0 copies 2 bars). |
source_time_bars * | number | 0-based start of the source bar window to copy from (inclusive). |
channel | 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 | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
gen_list_scales List Scales
List all built-in musical scale names supported by the generator and voice scale-snap tools. Call before `gen_scale_notes`, `gen_emit_melody`, `gen_emit_chord_progression`, or `voice_to_piano_roll` when you need a valid `scale` string. Pure Python; runs locally without connecting to FL Studio.
gen_list_chord_qualities List Chord Qualities
List all supported chord quality names (e.g. `maj`, `min`, `maj7`, `min9`, `sus4`). Call before `gen_chord_notes` or `gen_emit_arpeggio` to pick a valid `quality`. Pure Python; runs locally without connecting to FL Studio.
gen_list_progressions List Chord Progressions
List all built-in Roman-numeral chord progression templates (e.g. `I-V-vi-IV`, `ii-V-I`). Call before `gen_emit_chord_progression` or `gen_emit_bassline` to choose a valid `progression` key. Pure Python; runs locally without connecting to FL Studio.
gen_list_drum_patterns List Drum Patterns
List all built-in 16-step genre drum pattern style names (`trap`, `house`, `boom_bap`, etc.). Pass a returned style name to `gen_emit_drum_pattern_step_seq` (for Channel Rack step-sequencer grids) or `gen_emit_drum_pattern_notes` (for Piano Roll drum kits); call `gen_list_dnb_styles` instead for specialized 2-bar Drum & Bass breakbeats.
gen_chord_notes Preview Chord Notes
Compute MIDI note numbers for a single chord voicing without modifying FL Studio. Use to build custom voice-leading before calling `piano_roll_add_chord` or `piano_roll_add_notes`; use `gen_emit_chord_progression` to write a full progression directly. Pure Python; raises on invalid `root` or unknown `quality`.
| Parameter | Type | Description |
|---|---|---|
inversion | integer | Chord inversion count (0 = root position, 1 = first inversion, 2 = second inversion). |
quality | string | Chord quality from `gen_list_chord_qualities` (e.g. 'maj', 'min', 'min7', 'maj9', 'sus2'). |
root | string | Root pitch with octave using sharps or flats (e.g. 'C4', 'F#3', 'Bb4'; C4 = MIDI 60). |
gen_scale_notes Preview Scale Notes
Compute ascending MIDI note numbers for a named musical scale without modifying FL Studio. Use to inspect in-key pitches before composing custom note lists with `piano_roll_add_notes`; use `gen_emit_melody` to generate and write a melody directly. Pure Python; raises on invalid `root` or unknown `scale`.
| Parameter | Type | Description |
|---|---|---|
octaves | integer | Number of ascending octaves to generate (>= 1; includes the closing octave root). |
root | string | Starting root pitch with octave (e.g. 'A3', 'C4', 'F#4'). |
scale | string | Scale name from `gen_list_scales` (e.g. 'minor', 'major', 'dorian', 'minor_pent'). |
gen_emit_chord_progression Write Chord Progression
Generate a preset Roman-numeral chord progression and write it into a channel's Piano Roll. Use for quick diatonic progressions; use `piano_roll_add_notes` (with `gen_chord_notes`) for custom voicings, inversions, or non-diatonic harmony, and pair with `gen_emit_bassline` using the same `progression`/`root`/`scale`. Defaults to `clear_first=True` (replaces existing notes on `channel`); verify via `piano_roll_read`.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose Piano Roll will receive the generated notes. |
chord_length_bars | number | Duration of each chord in project bars (default 1.0 = one bar per chord). |
clear_first | boolean | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. |
octave_shift | integer | Optional whole-octave transpose applied to all chords (e.g. -1 or +1; default 0). |
pattern | Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern. | |
progression | string | Roman-numeral progression template from `gen_list_progressions` (e.g. 'I-V-vi-IV', 'i-VII-VI-V', 'ii-V-I'). |
root | string | Key root pitch with octave (e.g. 'C4', 'A3', 'F#4'). |
scale | string | Scale name from `gen_list_scales` matching the progression (e.g. 'major' or 'minor'). |
gen_emit_melody Write Scale Melody
Generate a stepwise in-key melody and write it into a channel's Piano Roll. Use to sketch an instant scale-locked melody idea (supply `seed` to reproduce); use `piano_roll_add_notes` for exact hand-crafted melodies, `voice_to_piano_roll` for hummed melodies, or `audio_melody_to_piano_roll` for melodies extracted from audio files. Defaults to `clear_first=True`; verify with `piano_roll_read`.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose Piano Roll will receive the generated notes. |
clear_first | boolean | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. |
length_bars | number | Total melody length in project bars (default 4.0). |
note_duration_bars | number | Nominal rhythmic step / note spacing in project bars (e.g. 0.125 = 8th notes, 0.25 = quarter notes). |
octave_range | integer | Number of octaves above `root` to draw melody notes from (default 2). |
pattern | Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern. | |
root | string | Scale root pitch with octave (e.g. 'A4', 'C4'). |
scale | string | Scale name from `gen_list_scales` (e.g. 'minor', 'minor_pent', 'dorian'). |
seed | Optional integer random seed for reproducible melodic phrases; omit for a fresh variation each call. |
gen_emit_bassline Write Bassline
Generate a bassline following a progression's roots and write it into a channel's Piano Roll. Pair with `gen_emit_chord_progression` using matching `progression`, `scale`, and `bar_length`; use `piano_roll_add_notes` for custom 808 glides (`slide=True`) or syncopated bass rhythms. Defaults to `clear_first=True`; verify with `piano_roll_read`.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose Piano Roll will receive the generated notes. |
bar_length | number | Duration spent on each chord degree in project bars (default 1.0; match `chord_length_bars` used in `gen_emit_chord_progression`). |
clear_first | boolean | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. |
pattern | Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern. | |
pattern_style | string | Bass rhythm style: 'root' (sustained roots), 'octaves' (half-bar root/octave pump), 'walking' (quarter-note passing run), or 'eighths' (driving 8th notes). |
progression | string | Roman-numeral progression from `gen_list_progressions` whose roots the bass follows (e.g. 'i-VII-VI-V'). |
root | string | Low-register root pitch with octave (e.g. 'C2', 'A1', 'F2'). |
scale | string | Scale name from `gen_list_scales` matching the harmonic progression (e.g. 'minor', 'major'). |
gen_emit_drum_pattern_notes Write Drum Notes to Piano Roll
Write a 16-step drum groove as individual MIDI notes into the currently open single-channel Piano Roll. Use this for single-channel multi-pad drum instruments (such as FPC—inspect pads with `plugin_fpc_pads` first—or when the MIDI bridge is offline). Prefer `gen_emit_drum_pattern_step_seq` when driving separate Kick/Snare/Hat Channel Rack samplers via the step sequencer, or `gen_emit_dnb_groove` for 2-bar 32-step Drum & Bass breakbeats. Open the target drum channel's Piano Roll first (`ui_open_piano_roll_for_channel`).
| Parameter | Type | Description |
|---|---|---|
clear_first | boolean | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. |
midi_map | Optional drum-voice-to-MIDI-note overrides for keys {'kick','snare','clhat','ophat','clap','tom','ride'}; defaults to GM drum map (kick=36, snare=38, clhat=42, ophat=46, clap=39, tom=45, ride=51). | |
repeats | integer | Number of times to repeat the 16-step groove (>= 1, default 1). |
step_bars | number | Duration of each step in project bars (use 0.0625 for standard 16th-note 1-bar grooves in 4/4; default 0.25 spaces steps by quarter notes). |
style | string | 16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'boom_bap', 'trap', 'house', 'four_on_floor', 'reggaeton', 'rock'). |
gen_emit_drum_pattern_step_seq Write Drum Steps to Sequencer
Write a 16-step genre drum groove into FL Studio's Channel Rack step sequencer across multiple drum channels. Preferred drum writer whenever the MIDI bridge is online and each drum voice has its own Channel Rack sampler (e.g. 808 Kick, Clap, HiHat, Snare); follow up with `channel_set_step_param` to add hi-hat rolls (`repeat`) or velocity accents. Use `gen_emit_drum_pattern_notes` instead for single-channel Piano Roll drum kits (FPC) or offline bridge fallback, and `gen_emit_dnb_groove` for 2-bar DnB breakbeats.
| Parameter | Type | Description |
|---|---|---|
channel_map * | object | Mapping of drum voice names from {'kick','snare','clhat','ophat','clap','tom','ride'} to 0-based global Channel Rack indices (resolve indices via `channel_all`). |
pattern | Optional 1-based pattern index to write into; omit/None to write into the currently selected pattern. | |
repeats | integer | Number of 16-step (1-bar in 4/4) repetitions to write (>= 1, e.g. 4 for a 4-bar beat). |
style | string | 16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'trap', 'boom_bap', 'house', 'four_on_floor', 'reggaeton', 'rock'). |
gen_emit_arpeggio Write Chord Arpeggio
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`.
| Parameter | Type | Description |
|---|---|---|
channel * | integer | 0-based global Channel Rack index whose Piano Roll will receive the generated notes. |
clear_first | boolean | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. |
direction | string | Arpeggio note order: 'up', 'down', 'updown' (bounce), or 'random'. |
length_bars | number | Total duration of the generated arpeggio phrase in project bars (default 4.0). |
octaves | integer | Number of ascending octaves to span across the chord tones (>= 1, default 1). |
pattern | Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern. | |
quality | string | Chord quality from `gen_list_chord_qualities` (e.g. 'min', 'maj7', 'min9', 'sus2'). |
root | string | Chord root pitch with octave (e.g. 'C4', 'A3', 'F#4'). |
step_bars | number | Spacing and duration of each arpeggio note in project bars (e.g. 0.0625 = 16th notes, 0.125 = 8th notes, 0.25 = quarter notes). |
velocity | number | Normalized velocity from 0.0 to 1.0 applied to every generated note (default 0.8). |
voice_open_gui Open Voice Transcription Window
Launch the standalone interactive Voice-to-MIDI desktop GUI window in a non-blocking subprocess. Use when the user wants visual live waveform/pitch feedback and interactive sliders (scale snap, quantize, transpose, confidence filter) before clicking 'Send to FL Studio'. Use `voice_record_and_transcribe` or `voice_to_piano_roll` for headless chat-driven capture. Requires the optional `[audio]` and `[gui]` extras; returns `ok=False` if missing.
voice_list_devices List Microphone Devices
List available system audio input devices (indices, names, and default flag) for microphone capture. Call before `voice_record_and_transcribe` or `voice_to_piano_roll` to pick a specific `device` index when multiple microphones/interfaces exist. Requires the `[audio]` extra; returns `ok=False` with install guidance if missing.
voice_record_and_transcribe Record and Transcribe Microphone
Record live microphone audio and transcribe it to timestamped MIDI notes without editing FL Studio yet. First step of the safe two-step voice workflow: review note count, timing, and confidence first, then push cleaned notes into FL via `voice_notes_to_piano_roll`. Use `voice_to_piano_roll` for a single-call capture-and-write, or `voice_transcribe_file` for an existing audio file. Plays a countdown beep (3 short + 1 long) at start and 1 beep at stop; requires the `[audio]` extra.
| Parameter | Type | Description |
|---|---|---|
device | Optional audio input device index from `voice_list_devices`; omit/None to use the system default mic. | |
duration_sec | number | Microphone recording length in seconds (default 8.0). |
fmax_hz | number | Highest pitch frequency to detect in Hz (default 1200.0 ≈ D6). |
fmin_hz | number | Lowest pitch frequency to detect in Hz (default 65.0 ≈ C2). |
min_note_sec | number | Minimum note duration in seconds; shorter pitch glitches are discarded (default 0.08). |
polyphonic | boolean | If False (default), use monophonic pyin (best for humming/singing); if True, use Spotify Basic Pitch for chords/polyphonic instruments (requires `[polyphonic]` extra). |
voice_transcribe_file Transcribe Audio File to Notes
Transcribe an existing audio file into timestamped MIDI notes for inspection without modifying FL Studio. Use when you want to inspect or filter extracted notes before writing them with `voice_notes_to_piano_roll`; use `audio_melody_to_piano_roll` to transcribe and write directly into a Piano Roll in one call, or `audio_analyze` to also detect BPM, musical key, and onsets. Requires the `[audio]` extra (and `[polyphonic]` if `polyphonic=True`).
| Parameter | Type | Description |
|---|---|---|
audio_path * | string | Path to an existing WAV, FLAC, MP3, or OGG audio file to transcribe. |
fmax_hz | number | Highest pitch frequency to track in Hz (default 1200.0 ≈ D6). |
fmin_hz | number | Lowest pitch frequency to track in Hz (default 65.0 ≈ C2). |
min_note_sec | number | Minimum note duration in seconds; shorter fragments are discarded (default 0.08). |
polyphonic | boolean | If False (default), extract a single monophonic line with pyin; if True, transcribe chords/full mixes with Spotify Basic Pitch (requires `[polyphonic]` extra). |
voice_to_piano_roll Record Melody to Piano Roll
Record live microphone audio, transcribe it, snap/quantize, and write straight into FL's open Piano Roll. One-shot live-mic alternative to `voice_record_and_transcribe` + `voice_notes_to_piano_roll` (use the two-step pair when you want to inspect the transcription before touching the Piano Roll; use `piano_roll_add_notes` for explicit note lists or `audio_melody_to_piano_roll` for audio files). Open the target instrument's Piano Roll first (`ui_open_piano_roll_for_channel`); requires `[audio]`.
| Parameter | Type | Description |
|---|---|---|
bpm | number | Tempo in BPM used to convert recorded seconds into Piano Roll bars (match FL's BPM from `transport_status`). |
clear_first | boolean | If True (default), clear the currently open Piano Roll before writing transcribed notes. |
device | Optional audio input device index from `voice_list_devices`; omit/None for system default mic. | |
duration_sec | number | Microphone capture duration in seconds (default 8.0). |
min_confidence | number | Confidence threshold 0.0..1.0 below which uncertain notes are dropped (default 0.35). |
min_note_sec | number | Minimum note duration in seconds; shorter artifacts are ignored (default 0.08). |
polyphonic | boolean | If False (default), use monophonic pyin for humming; if True, use Spotify Basic Pitch for chords/polyphonic playing (requires `[polyphonic]` extra). |
quantize_grid_sec | Optional quantization grid spacing in seconds (e.g. 0.125 = 16th note at 120 BPM, 0.25 = 8th note); omit/None to keep live timing. | |
scale | Optional scale name from `gen_list_scales` (e.g. 'minor', 'major', 'dorian'); applied only when `scale_root` is also given. | |
scale_root | Optional key root pitch class without octave (e.g. 'C', 'F#', 'Bb'); when paired with `scale`, snaps notes to key. | |
transpose_semitones | integer | Signed semitone shift applied to all transcribed notes before scale snapping (default 0). |
voice_notes_to_piano_roll Write Transcribed Notes to Piano Roll
Convert an already-transcribed second-timed note list into bars and write it into FL's open Piano Roll. Second step after `voice_record_and_transcribe` or `voice_transcribe_file` so you can inspect/filter raw notes before editing FL Studio; use `piano_roll_add_notes` instead when your notes are already timed in bars, or `voice_to_piano_roll` for a single-step mic capture. Pure Python (no `[audio]` extra required); open the target Piano Roll first with `ui_open_piano_roll_for_channel`.
| Parameter | Type | Description |
|---|---|---|
notes * | array | List of second-timed note objects `{midi: int, start_sec: float, duration_sec: float, velocity?: 0..1, confidence?: 0..1}` returned by `voice_record_and_transcribe` or `voice_transcribe_file`. |
bpm | number | Project tempo in BPM used to convert `start_sec`/`duration_sec` into Piano Roll bars (default 120.0). |
clear_first | boolean | If True (default), clear the currently open Piano Roll before writing; set False to append. |
quantize_grid_sec | Optional grid spacing in seconds to snap note starts (omit/None to keep original timing). | |
scale | Optional scale name from `gen_list_scales` (applied only when `scale_root` is also given). | |
scale_root | Optional key root pitch class (e.g. 'C', 'A', 'F#'); paired with `scale` to snap pitches into key. | |
transpose_semitones | integer | Signed semitone offset applied before scale snapping (default 0). |
audio_loudness_report Measure Loudness and Stereo Image
Measure ITU-R BS.1770 gated LUFS, LRA, true peak (dBTP), crest factor, 6-band tonal balance, and stereo correlation of an audio file. Pair with `project_render` to audit offline bounces, or use `audio_compare_reference` to compare your mix directly against a commercial reference track; use `mixer_diagnose` for live peak metering inside FL Studio. Runs locally (no FL needed); requires the `[audio]` extra (`numpy`, `scipy`, `soundfile`) and returns `ok=False` if missing.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a rendered mono or stereo audio file (WAV, FLAC, OGG, MP3) to measure. |
target_lufs | number | Target integrated loudness in LUFS used to flag too-quiet or over-compressed mixes (default -14.0 LUFS for streaming; e.g. -9.0 for club/EDM). |
audio_compare_reference Compare Mix to Reference
Compare a rendered mix against a reference track across level-matched 6-band tonal balance, loudness, dynamics, and stereo width. Deltas are computed as `mix - reference` with prioritized mixing suggestions. Use `audio_loudness_report` when inspecting a single file without a reference. Runs locally without FL Studio; requires the `[audio]` extra (`ok=False` if missing or either file does not exist).
| Parameter | Type | Description |
|---|---|---|
mix_path * | string | Path to your rendered mix audio file (e.g. WAV from `project_render`). |
reference_path * | string | Path to the commercial or target reference audio file to compare against. |
audio_analyze Analyze Audio File
Analyze an audio file offline to detect BPM, musical key, beat/onset timings, loudness, and optional MIDI melody notes. Use before `song_to_dnb_flip`, `audio_slice`, or matching FL's project tempo and key to a sample; use `audio_loudness_report` for broadcast-grade BS.1770 mastering metrics, or `voice_transcribe_file` for standalone note transcription with pitch-range controls. Requires the `[audio]` extra (`ok=False` if missing or file not found).
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to an audio file (WAV, FLAC, MP3, OGG, AIFF) to analyze. |
extract_melody | boolean | If True, also transcribe pitch notes into `melody_notes`; False (default) skips pitch extraction for faster analysis. |
polyphonic | boolean | When `extract_melody=True`, set True to use Spotify Basic Pitch for chords/full mixes (requires `[polyphonic]` extra) instead of monophonic pyin. |
audio_slice Slice Audio File
Chop an audio file at detected transient onsets and write up to `max_slices` individual WAV samples to disk. Use to prepare sample chops from breaks or loops for dragging into FL Studio (FPC/Slicex/Channel Rack). Writes files to `output_dir` without modifying the open FL Studio project; requires the `[audio]` extra (`ok=False` if missing or file not found).
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the source audio file (e.g. drum break or vocal loop) to slice at detected transients. |
max_slices | integer | Maximum number of onset-chopped WAV files to write to disk (default 32). |
output_dir | Optional destination directory for the exported slice WAVs (use a fresh directory to avoid overwriting earlier slices); omit to use a sibling directory. |
audio_melody_to_piano_roll Transcribe Audio to Piano Roll
Transcribe melody or chords from an existing audio file directly into a channel's FL Studio Piano Roll. Use for audio-file-to-MIDI conversion in one step; use `voice_to_piano_roll` for live microphone humming, `voice_transcribe_file` + `voice_notes_to_piano_roll` to review notes before writing, or `piano_roll_add_notes` for explicit MIDI note arrays. Requires the `[audio]` extra (`[polyphonic]` if `polyphonic=True`) and a valid target channel or open Piano Roll.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the source audio file (WAV, MP3, FLAC, OGG) whose melody or chords will be transcribed. |
bpm | Optional BPM override used to map audio seconds into Piano Roll bars; omit/None to use the file's detected BPM. | |
channel | 0-based global Channel Rack index whose Piano Roll will receive the transcribed notes (opens that Piano Roll automatically). | |
clear_first | boolean | If True (default), clear existing notes on the target Piano Roll before writing; False appends. |
min_confidence | number | Confidence threshold 0.0..1.0 below which uncertain notes are discarded (default 0.3). |
pattern | Optional 1-based pattern index to select before writing; omit/None to use the current pattern. | |
polyphonic | boolean | If False (default), transcribe the dominant monophonic melody with pyin; if True, transcribe chords/all notes via Basic Pitch (requires `[polyphonic]` extra). |
snap_to_detected_key | boolean | If True (default), snap transcribed pitches to the audio file's detected musical scale. |
transpose_semitones | integer | Signed semitone transpose applied to transcribed notes before key snapping (default 0). |
gen_list_dnb_styles List Drum & Bass Styles
List available 2-bar (32-step) Drum & Bass breakbeat styles (`amen`, `think`, `modern`, `halftime`). Pass a returned style name to `gen_emit_dnb_groove` or `song_to_dnb_flip`; call `gen_list_drum_patterns` instead for general 1-bar genre beats (`trap`, `house`, `boom_bap`, etc.). Pure Python; runs locally without FL Studio.
gen_emit_dnb_groove Write Drum & Bass Groove
Write a 2-bar 32-step Drum & Bass breakbeat as GM MIDI drum notes into a channel's Piano Roll. Distinct from the 1-bar general drum tools: writes authentic 2-bar DnB patterns (MIDI 36 kick, 38 snare, 42 closed-hat, 46 open-hat, 51 ride) into one Piano Roll drum channel. Use `gen_emit_drum_pattern_step_seq` for multi-channel Channel Rack step-sequencer genres (`trap`, `house`, `boom_bap`), `gen_emit_drum_pattern_notes` for 1-bar Piano Roll drum grooves, or `song_to_dnb_flip` to combine DnB drums with sub-bass and melody extracted from a song.
| Parameter | Type | Description |
|---|---|---|
channel | 0-based global Channel Rack index hosting a GM-mapped drum kit (e.g. FPC); omit to target the open Piano Roll. | |
clear_first | boolean | If True (default), clear existing notes on the target Piano Roll before writing; False appends. |
pattern | Optional 1-based pattern index to select before writing; omit/None to use the current pattern. | |
repeats | integer | Number of 2-bar breakbeat loops to emit (>= 1; e.g. 2 writes 4 bars). |
style | string | 2-bar 32-step DnB breakbeat template: 'amen', 'think', 'modern' (default), or 'halftime'. |
song_to_dnb_flip Create Drum & Bass Flip
Analyze a source audio track and build a multi-layer Drum & Bass remix sketch (drums, root sub-bass, and key-snapped melody) in FL Studio. All-in-one remix workflow combining `audio_analyze`, `gen_emit_dnb_groove`, root sub-bass, and `audio_melody_to_piano_roll`, routing each layer to its own channel when `drum_channel`/`bass_channel`/`melody_channel` are supplied. Does not change FL Studio's live project tempo automatically—follow up with `transport_set_tempo` to audition at `target_bpm`. Requires the `[audio]` extra (`[polyphonic]` if `polyphonic=True`).
| Parameter | Type | Description |
|---|---|---|
audio_path * | string | Path to the source audio file (MP3, WAV, FLAC, OGG) to remix into a DnB sketch. |
bass_channel | Optional 0-based Channel Rack index specifically for the detected-root sub-bass layer (overrides `channel`). | |
channel | Default 0-based global Channel Rack index used for any layer without a dedicated override (`drum_channel`, `bass_channel`, `melody_channel`). | |
clear_first | boolean | If True (default), clear each targeted destination Piano Roll once before writing its layer. |
dnb_bars | integer | Total sketch length in bars (even values such as 4 or 8 fit 2-bar DnB loops cleanly; default 4). |
dnb_style | string | 2-bar DnB breakbeat style for the drum layer: 'amen' (default), 'think', 'modern', or 'halftime'. |
drum_channel | Optional 0-based Channel Rack index specifically for the DnB drum breakbeat layer (overrides `channel`). | |
include_bass | boolean | If True (default), generate an octave-1 sub-bass pattern locked to the detected key root. |
include_melody | boolean | If True (default), transcribe and scale-snap the source track's melody into the first `dnb_bars` bars. |
melody_channel | Optional 0-based Channel Rack index specifically for the transcribed melody/chord layer (overrides `channel`). | |
pattern | Optional 1-based pattern index to select before writing all layers; omit/None to use the current pattern. | |
polyphonic | boolean | When `include_melody=True`, set True to capture chords via Spotify Basic Pitch (requires `[polyphonic]` extra) instead of monophonic pyin. |
target_bpm | number | Target DnB tempo in BPM used to map transcribed seconds into bars (default 174.0; set FL's project tempo separately via `transport_set_tempo`). |