Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Write Transcribed Notes to Piano Roll

voice_notes_to_piano_roll
Destructive

Convert second-timed note lists from voice transcription into bars and write them to FL Studio's open Piano Roll, with optional tempo, quantization, transposition, and scale snapping.

Instructions

Convert an already-transcribed second-timed note list into bars and write it into FL's open Piano Roll.

Second step after voice_record_and_transcribe or voice_transcribe_file so you can inspect/filter raw notes before editing FL Studio; use piano_roll_add_notes instead when your notes are already timed in bars, or voice_to_piano_roll for a single-step mic capture. Pure Python (no [audio] extra required); open the target Piano Roll first with ui_open_piano_roll_for_channel.

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": {
      "notes": "<notes>"
    },
    "name": "voice_notes_to_piano_roll"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoProject tempo in BPM used to convert `start_sec`/`duration_sec` into Piano Roll bars (default 120.0).
notesYesList of second-timed note objects `{midi: int, start_sec: float, duration_sec: float, velocity?: 0..1, confidence?: 0..1}` returned by `voice_record_and_transcribe` or `voice_transcribe_file`.
scaleNoOptional scale name from `gen_list_scales` (applied only when `scale_root` is also given).
scale_rootNoOptional key root pitch class (e.g. 'C', 'A', 'F#'); paired with `scale` to snap pitches into key.
clear_firstNoIf True (default), clear the currently open Piano Roll before writing; set False to append.
quantize_grid_secNoOptional grid spacing in seconds to snap note starts (omit/None to keep original timing).
transpose_semitonesNoSigned semitone offset applied before scale snapping (default 0).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.6.1
    • addedInput schema / properties / bpm / description
      Added value: +"Project tempo in BPM used to convert `start_sec`/`duration_sec` into Piano Roll bars (default 120.0)."
    • addedInput schema / properties / clear_first / description
      Added value: +"If True (default), clear the currently open Piano Roll before writing; set False to append."
    • addedInput schema / properties / notes / description
      Added value: +"List of second-timed note objects `{midi: int, start_sec: float, duration_sec: float, velocity?: 0..1, confidence?: 0..1}` returned by `voice_record_and_transcribe` or `voice_transcribe_file`."
    • addedInput schema / properties / quantize_grid_sec / description
      Added value: +"Optional grid spacing in seconds to snap note starts (omit/None to keep original timing)."
    • addedInput schema / properties / scale / description
      Added value: +"Optional scale name from `gen_list_scales` (applied only when `scale_root` is also given)."
    • addedInput schema / properties / scale_root / description
      Added value: +"Optional key root pitch class (e.g. 'C', 'A', 'F#'); paired with `scale` to snap pitches into key."
    • addedInput schema / properties / transpose_semitones / description
      Added value: +"Signed semitone offset applied before scale snapping (default 0)."
  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 idempotentHint=false, so the mutation risk is known. The description adds value beyond that by disclosing the runtime dependency (pure Python, no `[audio]` extra) and the environmental prerequisite that a Piano Roll must already be open, which the annotations do not convey.

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?

Three sentences, front-loaded with the action and immediately followed by sibling routing, with no filler. The closing sentence packs two unrelated facts (Python dependency and Piano Roll prerequisite) into one, which slightly blunts scanning.

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

Completeness5/5

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

Output schema exists, so return values need no explanation, and the description covers purpose, pipeline position, alternatives, and the preconditions an agent needs. Nothing required to invoke it correctly is missing.

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 including bpm, clear_first, scale/scale_root, quantize_grid_sec and transpose_semitones is already documented. The description adds only the framing that the input arrives second-timed and pre-inspection, which is context rather than parameter semantics; 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 and resource: convert an already-transcribed second-timed note list into bars and write it into FL's open Piano Roll. The 'already-transcribed / second-timed' qualifier distinguishes it from the raw-audio siblings in the same sentence.

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?

Explicitly positions the tool as the second step after `voice_record_and_transcribe` or `voice_transcribe_file`, and names two alternatives with the conditions that select them: `piano_roll_add_notes` for notes already timed in bars, `voice_to_piano_roll` for single-step mic capture. It also states the precondition to open the target Piano Roll first.

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