Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Edit Matching Piano Roll Notes

piano_roll_edit_notes
Destructive

Modify velocity, timing, duration, pitch, or native FL attributes on filtered Piano Roll notes in place while preserving untouched fields. Target notes by MIDI, bar range, color, or explicit matches.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "updates": "<updates>"
    },
    "name": "piano_roll_edit_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelNoOptional 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.
filtersNoOptional 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.
patternNoOptional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern.
updatesYesMutations 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`, `pitchofs`, `release`, `muted`).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changedv0.6.1
    • addedInput schema / $defs / NoteFilter / properties / color / description
      Added value: +"Match only notes in this FL color group (0..15)."
    • addedInput schema / $defs / NoteFilter / properties / end_bars / description
      Added value: +"Exclusive end of bar range filter (0-based project bars)."
    • addedInput schema / $defs / NoteFilter / properties / matches / description
      Added value: +"Explicit list of `{midi, time_bars}` targets to match."
    • addedInput schema / $defs / NoteFilter / properties / midi / description
      Added value: +"Match only notes with this exact MIDI pitch (0..127)."
    • addedInput schema / $defs / NoteFilter / properties / midi_max / description
      Added value: +"Match notes with MIDI pitch <= `midi_max` (0..127)."
    • addedInput schema / $defs / NoteFilter / properties / midi_min / description
      Added value: +"Match notes with MIDI pitch >= `midi_min` (0..127)."
    • addedInput schema / $defs / NoteFilter / properties / start_bars / description
      Added value: +"Inclusive start of bar range filter (0-based project bars)."
    • addedInput schema / $defs / NoteMatch / properties / midi / description
      Added value: +"Exact MIDI pitch number (0..127) to match."
    • addedInput schema / $defs / NoteMatch / properties / time_bars / description
      Added value: +"0-based note start time in project bars (matched within a small tolerance)."
    • addedInput schema / $defs / NoteUpdates / properties / color / description
      Added value: +"FL Studio Piano Roll note color / MIDI channel group 0..15."
    • addedInput schema / $defs / NoteUpdates / properties / duration_bars / description
      Added value: +"Replacement note duration in project bars (> 0)."
    • addedInput schema / $defs / NoteUpdates / properties / fcut / description
      Added value: +"Per-note filter cutoff modifier (0.0..1.0, 0.5 = neutral)."
    • addedInput schema / $defs / NoteUpdates / properties / fres / description
      Added value: +"Per-note filter resonance modifier (0.0..1.0, 0.5 = neutral)."
    • addedInput schema / $defs / NoteUpdates / properties / muted / description
      Added value: +"Mute flag for the note (True = muted in Piano Roll)."
    • addedInput schema / $defs / NoteUpdates / properties / pan / description
      Added value: +"Per-note pan from 0.0 (left) through 0.5 (center) to 1.0 (right)."
    • addedInput schema / $defs / NoteUpdates / properties / pitchofs / description
      Added value: +"Fine pitch offset in tenths of a semitone (-120..+120)."
    • addedInput schema / $defs / NoteUpdates / properties / porta / description
      Added value: +"Enable FL Studio native portamento note flag."
    • addedInput schema / $defs / NoteUpdates / properties / release / description
      Added value: +"Per-note release velocity (0.0..1.0)."
    • addedInput schema / $defs / NoteUpdates / properties / slide / description
      Added value: +"Enable FL Studio native pitch-slide note flag."
    • addedInput schema / $defs / NoteUpdates / properties / time_delta_bars / description
      Added value: +"Relative timing shift in project bars (positive = later, negative = earlier)."
    • addedInput schema / $defs / NoteUpdates / properties / transpose / description
      Added value: +"Relative pitch shift in semitones (positive = up, negative = down)."
    • addedInput schema / $defs / NoteUpdates / properties / velocity / description
      Added value: +"Normalized note velocity from 0.0 to 1.0 (default ~0.8)."
    • addedInput schema / $defs / NoteUpdates / properties / velocity_delta / description
      Added value: +"Relative change added to each matching note's normalized velocity (applied after `velocity` if both are set)."
    • addedInput schema / properties / channel / description
      Added value: +"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."
    • addedInput schema / properties / filters / description
      Added value: +"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."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern."
    • addedInput schema / properties / updates / description
      Added value: +"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`, `pitchofs`, `release`, `muted`)."
  2. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the mutation profile is known. The description adds real context beyond that: it preserves all untouched note fields, needs an explicit target or raises, and raises when `updates` is empty. It stops short of stating whether edits are undoable or how partial matches behave, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the operation and its scope come first, then the target precondition, then the sibling routing and the error case. No filler and no repetition of schema detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description covers purpose, targeting, alternatives, and the empty-`updates` failure. For a nested 15-field mutation tool it is nearly complete; only the interaction between absolute and delta updates and the effect of omitting `filters` are left to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents `channel`, `pattern`, `filters`, and every field of `updates` in detail. The description reinforces the target requirement and the 'at least one update field' rule, but adds no new syntax, ranges, or precedence information beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Modify ... on filtered Piano Roll notes in place') and enumerates the mutable dimensions (velocity, timing, duration, pitch, native FL attributes). It clearly distinguishes this general editor from the single-purpose siblings it names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes the agent to alternatives with conditions: `piano_roll_transpose` for quick semitone shifts, `piano_roll_quantize` for grid snapping, and `piano_roll_delete_notes` for removal. It also states the targeting precondition (an explicit `channel` or an already-open Piano Roll), leaving nothing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools