Transcribe Audio to Piano Roll
audio_melody_to_piano_rollTranscribe 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
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Optional BPM override used to map audio seconds into Piano Roll bars; omit/None to use the file's detected BPM. | |
| path | Yes | Path to the source audio file (WAV, MP3, FLAC, OGG) whose melody or chords will be transcribed. | |
| channel | No | 0-based global Channel Rack index whose Piano Roll will receive the transcribed notes (opens that Piano Roll automatically). | |
| pattern | No | Optional 1-based pattern index to select before writing; omit/None to use the current pattern. | |
| polyphonic | No | If False (default), transcribe the dominant monophonic melody with pyin; if True, transcribe chords/all notes via Basic Pitch (requires `[polyphonic]` extra). | |
| clear_first | No | If True (default), clear existing notes on the target Piano Roll before writing; False appends. | |
| min_confidence | No | Confidence threshold 0.0..1.0 below which uncertain notes are discarded (default 0.3). | |
| transpose_semitones | No | Signed semitone transpose applied to transcribed notes before key snapping (default 0). | |
| snap_to_detected_key | No | If True (default), snap transcribed pitches to the audio file's detected musical scale. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||