Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Transcribe Audio to Piano Roll

audio_melody_to_piano_roll
Destructive

Transcribe melody or chords from an audio file directly into an FL Studio Piano Roll, converting audio to MIDI notes in one step.

Instructions

Transcribe melody or chords from an existing audio file directly into a channel's FL Studio Piano Roll.

Use for audio-file-to-MIDI conversion in one step; use voice_to_piano_roll for live microphone humming, voice_transcribe_file + voice_notes_to_piano_roll to review notes before writing, or piano_roll_add_notes for explicit MIDI note arrays. Requires the [audio] extra ([polyphonic] if polyphonic=True) and a valid target channel or open Piano Roll.

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": {
      "path": "<path>"
    },
    "name": "audio_melody_to_piano_roll"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoOptional BPM override used to map audio seconds into Piano Roll bars; omit/None to use the file's detected BPM.
pathYesPath to the source audio file (WAV, MP3, FLAC, OGG) whose melody or chords will be transcribed.
channelNo0-based global Channel Rack index whose Piano Roll will receive the transcribed notes (opens that Piano Roll automatically).
patternNoOptional 1-based pattern index to select before writing; omit/None to use the current pattern.
polyphonicNoIf False (default), transcribe the dominant monophonic melody with pyin; if True, transcribe chords/all notes via Basic Pitch (requires `[polyphonic]` extra).
clear_firstNoIf True (default), clear existing notes on the target Piano Roll before writing; False appends.
min_confidenceNoConfidence threshold 0.0..1.0 below which uncertain notes are discarded (default 0.3).
transpose_semitonesNoSigned semitone transpose applied to transcribed notes before key snapping (default 0).
snap_to_detected_keyNoIf True (default), snap transcribed pitches to the audio file's detected musical scale.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.6.1
    • addedInput schema / properties / bpm / description
      Added value: +"Optional BPM override used to map audio seconds into Piano Roll bars; omit/None to use the file's detected BPM."
    • addedInput schema / properties / channel / description
      Added value: +"0-based global Channel Rack index whose Piano Roll will receive the transcribed notes (opens that Piano Roll automatically)."
    • addedInput schema / properties / clear_first / description
      Added value: +"If True (default), clear existing notes on the target Piano Roll before writing; False appends."
    • addedInput schema / properties / min_confidence / description
      Added value: +"Confidence threshold 0.0..1.0 below which uncertain notes are discarded (default 0.3)."
    • addedInput schema / properties / path / description
      Added value: +"Path to the source audio file (WAV, MP3, FLAC, OGG) whose melody or chords will be transcribed."
    • addedInput schema / properties / pattern / description
      Added value: +"Optional 1-based pattern index to select before writing; omit/None to use the current pattern."
    • addedInput schema / properties / polyphonic / description
      Added value: +"If False (default), transcribe the dominant monophonic melody with pyin; if True, transcribe chords/all notes via Basic Pitch (requires `[polyphonic]` extra)."
    • addedInput schema / properties / snap_to_detected_key / description
      Added value: +"If True (default), snap transcribed pitches to the audio file's detected musical scale."
    • addedInput schema / properties / transpose_semitones / description
      Added value: +"Signed semitone transpose applied to transcribed notes before key 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 declare destructiveHint=true and non-idempotent, and the description adds real context beyond them: the optional dependency extras ([audio], [polyphonic] when polyphonic=True) and the requirement for a valid target channel or open Piano Roll. It does not itself mention that existing notes are cleared by default, but that behavior is disclosed in the clear_first schema field, so the gap is minor.

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?

Front-loads what the tool does in the first sentence, then a single routing sentence, then a single prerequisites sentence. Every clause carries routing or dependency information; there is no filler or repetition of 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?

An output schema exists, so return values need not be explained, and annotations already flag the destructive write profile. The description covers prerequisites and alternatives well; the only residual gap is that the default clearing of existing notes is left entirely to the schema rather than called out in prose.

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% and all nine parameters are documented with defaults and semantics, so the baseline is 3. The prose adds only the polyphonic-extras caveat, which the schema already states, and gives no further guidance on channel/pattern selection or confidence thresholds beyond what the schema provides.

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: transcribe melody or chords from an existing audio file directly into a channel's Piano Roll. The name, title, and first sentence align, and the description immediately frames the tool as one-step audio-file-to-MIDI conversion, which differentiates it from the voice- and note-array-based siblings.

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 routes the agent: use voice_to_piano_roll for live microphone humming, voice_transcribe_file + voice_notes_to_piano_roll to review notes before writing, and piano_roll_add_notes for explicit MIDI arrays. Each alternative is paired with the condition that selects it, leaving nothing to inference.

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