Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Write Chord Arpeggio

gen_emit_arpeggio
Destructive

Generate a multi-octave arpeggio from a named root and chord quality, then write it into an FL Studio Piano Roll to create chord-based patterns without manual MIDI entry.

Instructions

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.

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": {
      "channel": "<channel>"
    },
    "name": "gen_emit_arpeggio"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoChord root pitch with octave (e.g. 'C4', 'A3', 'F#4').C4
channelYes0-based global Channel Rack index whose Piano Roll will receive the generated notes.
octavesNoNumber of ascending octaves to span across the chord tones (>= 1, default 1).
patternNoOptional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern.
qualityNoChord quality from `gen_list_chord_qualities` (e.g. 'min', 'maj7', 'min9', 'sus2').min
velocityNoNormalized velocity from 0.0 to 1.0 applied to every generated note (default 0.8).
directionNoArpeggio note order: 'up', 'down', 'updown' (bounce), or 'random'.up
step_barsNoSpacing and duration of each arpeggio note in project bars (e.g. 0.0625 = 16th notes, 0.125 = 8th notes, 0.25 = quarter notes).
clear_firstNoIf True (default), clear existing notes in the target Piano Roll before writing; set False to append.
length_barsNoTotal duration of the generated arpeggio phrase in project bars (default 4.0).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.6.1
    • addedInput schema / properties / channel / description
      Added value: +"0-based global Channel Rack index whose Piano Roll will receive the generated notes."
    • addedInput schema / properties / clear_first / description
      Added value: +"If True (default), clear existing notes in the target Piano Roll before writing; set False to append."
    • addedInput schema / properties / direction / description
      Added value: +"Arpeggio note order: 'up', 'down', 'updown' (bounce), or 'random'."
    • addedInput schema / properties / length_bars / description
      Added value: +"Total duration of the generated arpeggio phrase in project bars (default 4.0)."
    • addedInput schema / properties / octaves / description
      Added value: +"Number of ascending octaves to span across the chord tones (>= 1, default 1)."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to select before writing; omit/None to write into the currently selected pattern."
    • addedInput schema / properties / quality / description
      Added value: +"Chord quality from `gen_list_chord_qualities` (e.g. 'min', 'maj7', 'min9', 'sus2')."
    • addedInput schema / properties / root / description
      Added value: +"Chord root pitch with octave (e.g. 'C4', 'A3', 'F#4')."
    • addedInput schema / properties / step_bars / description
      Added value: +"Spacing and duration of each arpeggio note in project bars (e.g. 0.0625 = 16th notes, 0.125 = 8th notes, 0.25 = quarter notes)."
    • addedInput schema / properties / velocity / description
      Added value: +"Normalized velocity from 0.0 to 1.0 applied to 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 destructiveHint=true and non-idempotent, and the description earns credit by localizing the destructiveness to clear_first=True (existing notes are cleared by default) and recommending piano_roll_read to verify the result. It does not describe failure modes, e.g. what happens with an unknown quality string or an out-of-range channel, so it stops short of full disclosure.

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 compact sentences, front-loaded with what it does, followed by the routing rule and the destructive default. Every clause carries information and nothing is repeated from the schema.

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?

For a 10-parameter mutation with full schema coverage, an output schema, and rich annotations, the description covers purpose, alternative routing, and the destructive default, which is the key risk. Minor omissions such as interaction between pattern and the currently selected pattern, or a warning about invalid quality strings, are handled by the schema or are non-essential.

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 carries per-parameter meaning (root format, octave spans, velocity range, step_bars mapping, quality source). The description adds only a mild framing that root/quality/octaves are the music-theory identity of the chord, which is marginal beyond the structured fields.

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 names a specific verb and resource ('Generate a multi-octave arpeggio'), the inputs that define it (named root + chord quality), and the destination ('write it into a Piano Roll'). It explicitly contrasts with piano_roll_add_arpeggio, so an agent can pick between the two without opening either schema.

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 gives a positive selection rule ('use when specifying a chord by music-theory name') and names the alternative with the exact condition that selects it (arbitrary explicit MIDI note lists, no clearing). It also flags the default clear_first=True and points to piano_roll_read for verification.

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