Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Write Drum Notes to Piano Roll

gen_emit_drum_pattern_notes
Destructive

Writes a 16-step genre drum groove as MIDI notes into the open single-channel Piano Roll, with style, repeats, and MIDI map options—ideal for FPC-style multi-pad kits.

Instructions

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).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gen_emit_drum_pattern_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNo16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'boom_bap', 'trap', 'house', 'four_on_floor', 'reggaeton', 'rock').boom_bap
repeatsNoNumber of times to repeat the 16-step groove (>= 1, default 1).
midi_mapNoOptional 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).
step_barsNoDuration 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).
clear_firstNoIf True (default), clear existing notes in the target Piano Roll before writing; set False to append.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.6.1
    • 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 / midi_map / description
      Added value: +"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)."
    • addedInput schema / properties / repeats / description
      Added value: +"Number of times to repeat the 16-step groove (>= 1, default 1)."
    • addedInput schema / properties / step_bars / description
      Added value: +"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)."
    • addedInput schema / properties / style / description
      Added value: +"16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'boom_bap', 'trap', 'house', 'four_on_floor', 'reggaeton', 'rock')."
  2. First observedv0.6.0

TDQS

A4.3/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 risk is flagged structurally. The description adds genuinely useful preconditions the annotations cannot convey: a Piano Roll must already be open on the correct channel, and FPC pads should be inspected first. It does not itself mention that existing notes get cleared by default, but the clear_first parameter description covers that.

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

Conciseness4/5

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

The core action and target are front-loaded in the first sentence, with alternatives and prerequisites following in a logical order. It is efficient, though the 'or when the MIDI bridge is offline' clause is dropped without explanation and adds slight noise.

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 not be explained, and the description covers prerequisites, alternatives, and pad inspection for a 5-parameter destructive writer. The one remaining gap is where in the timeline the notes are placed (cursor/playhead position), which affects correct invocation.

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%, with each parameter documented including GM drum-map defaults and the step_bars timing convention, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond pointing at gen_list_drum_patterns for valid style values. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Write a 16-step drum groove as individual MIDI notes') plus the exact target ('currently open single-channel Piano Roll'). It explicitly distinguishes itself from gen_emit_drum_pattern_step_seq and gen_emit_dnb_groove, so an agent can select it without opening any 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?

Gives explicit when-to-use conditions (single-channel multi-pad instruments like FPC, or MIDI bridge offline) and names two alternatives with the conditions that select them (step sequencer routing, 32-step DnB). It also supplies the prerequisite step of opening the Piano Roll for the target channel.

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