Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Add Piano Roll Arpeggio

piano_roll_add_arpeggio

Append a sequenced arpeggio built from explicit MIDI pitches to a Piano Roll, controlling direction, step timing, repeats, velocity, and note duration without clearing existing notes.

Instructions

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.

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": {
      "midi_notes": "<midi_notes>"
    },
    "name": "piano_roll_add_arpeggio"
  }
}

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.
patternNoOptional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern.
repeatsNoNumber of cycles to repeat the arpeggio sequence (>= 1, default 1).
velocityNoNormalized velocity from 0.0 to 1.0 for every generated note (default 0.8).
directionNoArpeggio traversal order: 'up' (as given), 'down' (reversed), 'updown' (bounce without repeating peaks), or 'random'.up
step_barsNoTime spacing between consecutive arpeggio notes in project bars (e.g. 0.0625 = 16th notes in 4/4, 0.25 = quarter notes).
time_barsNo0-based start offset in project bars (default 0.0).
midi_notesYesOrdered list of MIDI note pitches (0..127) to step through sequentially.
note_duration_barsNoDuration of each individual arpeggio note in project bars (default 0.25).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.6.1
    • 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 / direction / description
      Added value: +"Arpeggio traversal order: 'up' (as given), 'down' (reversed), 'updown' (bounce without repeating peaks), or 'random'."
    • addedInput schema / properties / midi_notes / description
      Added value: +"Ordered list of MIDI note pitches (0..127) to step through sequentially."
    • addedInput schema / properties / note_duration_bars / description
      Added value: +"Duration of each individual arpeggio note in project bars (default 0.25)."
    • 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 / repeats / description
      Added value: +"Number of cycles to repeat the arpeggio sequence (>= 1, default 1)."
    • addedInput schema / properties / step_bars / description
      Added value: +"Time spacing between consecutive arpeggio notes in project bars (e.g. 0.0625 = 16th notes in 4/4, 0.25 = quarter notes)."
    • addedInput schema / properties / time_bars / description
      Added value: +"0-based start offset in project bars (default 0.0)."
    • addedInput schema / properties / velocity / description
      Added value: +"Normalized velocity from 0.0 to 1.0 for every generated note (default 0.8)."
  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 readOnly=false, destructive=false, and idempotent=false; the description adds the crucial detail that it appends without clearing existing notes, which is exactly the non-destructive but non-idempotent behavior an agent needs to plan around. It does not explicitly warn that repeated calls accumulate duplicate notes, nor does it address failure modes when no Piano Roll is open, leaving a small gap.

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?

Three short, front-loaded segments: what it does, when to prefer the sibling, and the append/verify contract. No redundant restatement of the parameter list or the tool name.

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?

With a full output schema, complete parameter descriptions, and annotations covering safety, the description only needs to carry the mutation semantics and sibling routing, which it does. The one omission is how the channel/pattern targeting interacts with an already-open Piano Roll, though that is largely covered in 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 every parameter (channel, pattern, repeats, velocity, direction, step_bars, time_bars, midi_notes, note_duration_bars) is already documented in the schema. The description only reinforces that the pitches are "explicit" and stepped through sequentially, adding no timing, ordering, or unit detail beyond the schema — the baseline 3 applies.

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?

"Append a sequenced arpeggio built from explicit MIDI pitches directly into a Piano Roll" states a specific verb (append), resource (arpeggio of MIDI notes), and destination (Piano Roll). It is immediately distinguishable from gen_emit_arpeggio, which generates pitches rather than consuming them.

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?

Explicit selection criteria: use this when you already have exact MIDI pitches, prefer gen_emit_arpeggio for automatic generation from key/scale/chord progression. It also names piano_roll_read as the verification step, so both the alternative and the follow-up are spelled out.

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