Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Record Melody to Piano Roll

voice_to_piano_roll
Destructive

Records microphone audio, transcribes sung or hummed notes, applies optional quantize and scale snapping, then writes the result directly into FL Studio’s open Piano Roll.

Instructions

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

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": "voice_to_piano_roll"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoTempo in BPM used to convert recorded seconds into Piano Roll bars (match FL's BPM from `transport_status`).
scaleNoOptional scale name from `gen_list_scales` (e.g. 'minor', 'major', 'dorian'); applied only when `scale_root` is also given.
deviceNoOptional audio input device index from `voice_list_devices`; omit/None for system default mic.
polyphonicNoIf False (default), use monophonic pyin for humming; if True, use Spotify Basic Pitch for chords/polyphonic playing (requires `[polyphonic]` extra).
scale_rootNoOptional key root pitch class without octave (e.g. 'C', 'F#', 'Bb'); when paired with `scale`, snaps notes to key.
clear_firstNoIf True (default), clear the currently open Piano Roll before writing transcribed notes.
duration_secNoMicrophone capture duration in seconds (default 8.0).
min_note_secNoMinimum note duration in seconds; shorter artifacts are ignored (default 0.08).
min_confidenceNoConfidence threshold 0.0..1.0 below which uncertain notes are dropped (default 0.35).
quantize_grid_secNoOptional quantization grid spacing in seconds (e.g. 0.125 = 16th note at 120 BPM, 0.25 = 8th note); omit/None to keep live timing.
transpose_semitonesNoSigned semitone shift applied to all transcribed notes before scale snapping (default 0).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.6.1
    • addedInput schema / properties / bpm / description
      Added value: +"Tempo in BPM used to convert recorded seconds into Piano Roll bars (match FL's BPM from `transport_status`)."
    • addedInput schema / properties / clear_first / description
      Added value: +"If True (default), clear the currently open Piano Roll before writing transcribed notes."
    • addedInput schema / properties / device / description
      Added value: +"Optional audio input device index from `voice_list_devices`; omit/None for system default mic."
    • addedInput schema / properties / duration_sec / description
      Added value: +"Microphone capture duration in seconds (default 8.0)."
    • addedInput schema / properties / min_confidence / description
      Added value: +"Confidence threshold 0.0..1.0 below which uncertain notes are dropped (default 0.35)."
    • addedInput schema / properties / min_note_sec / description
      Added value: +"Minimum note duration in seconds; shorter artifacts are ignored (default 0.08)."
    • addedInput schema / properties / polyphonic / description
      Added value: +"If False (default), use monophonic pyin for humming; if True, use Spotify Basic Pitch for chords/polyphonic playing (requires `[polyphonic]` extra)."
    • addedInput schema / properties / quantize_grid_sec / description
      Added value: +"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."
    • addedInput schema / properties / scale / description
      Added value: +"Optional scale name from `gen_list_scales` (e.g. 'minor', 'major', 'dorian'); applied only when `scale_root` is also given."
    • addedInput schema / properties / scale_root / description
      Added value: +"Optional key root pitch class without octave (e.g. 'C', 'F#', 'Bb'); when paired with `scale`, snaps notes to key."
    • addedInput schema / properties / transpose_semitones / description
      Added value: +"Signed semitone shift applied to all transcribed notes before scale snapping (default 0)."
  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 and non-idempotent, and the description adds real context beyond them: the required prior UI state, the optional extras ([audio], [polyphonic]), and the two-mode transcription behavior (monophonic pyin vs Basic Pitch). It does not itself warn that the default writes over the currently open Piano Roll, though the clear_first schema entry covers that. Minor gap: no mention of mic permission or capture latency.

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 is front-loaded in the first sentence and the routing detail is correctly demoted to a parenthetical. Dense but every clause carries routing or prerequisite information; slightly long for a single description block.

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 an output schema present, return values need no explanation, and the description covers the key prerequisites, mode selection, and alternatives for an 11-parameter tool with no required fields. What remains unstated is the destructive default write into the open Piano Roll, which an agent would want flagged in prose rather than only in a parameter default.

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 is already documented with defaults and cross-referenced helpers (voice_list_devices, gen_list_scales, transport_status). The description adds no parameter-level meaning of its own, only the BPM/transcription pipeline context, so 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?

States a specific verb chain and resource: record mic audio, transcribe, quantize, and write into FL's open Piano Roll. It goes further and names the exact siblings it replaces, so an agent can tell it apart from voice_record_and_transcribe, voice_notes_to_piano_roll, piano_roll_add_notes, and audio_melody_to_piano_roll 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 routing: use the two-step pair when the transcription should be inspected before touching the Piano Roll, use piano_roll_add_notes for explicit note lists, and audio_melody_to_piano_roll for audio files. It also states a hard prerequisite (open the Piano Roll via ui_open_piano_roll_for_channel) and an install requirement ([audio]).

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