Record Melody to Piano Roll
voice_to_piano_rollRecords 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
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo in BPM used to convert recorded seconds into Piano Roll bars (match FL's BPM from `transport_status`). | |
| scale | No | Optional scale name from `gen_list_scales` (e.g. 'minor', 'major', 'dorian'); applied only when `scale_root` is also given. | |
| device | No | Optional audio input device index from `voice_list_devices`; omit/None for system default mic. | |
| polyphonic | No | If False (default), use monophonic pyin for humming; if True, use Spotify Basic Pitch for chords/polyphonic playing (requires `[polyphonic]` extra). | |
| scale_root | No | Optional key root pitch class without octave (e.g. 'C', 'F#', 'Bb'); when paired with `scale`, snaps notes to key. | |
| clear_first | No | If True (default), clear the currently open Piano Roll before writing transcribed notes. | |
| duration_sec | No | Microphone capture duration in seconds (default 8.0). | |
| min_note_sec | No | Minimum note duration in seconds; shorter artifacts are ignored (default 0.08). | |
| min_confidence | No | Confidence threshold 0.0..1.0 below which uncertain notes are dropped (default 0.35). | |
| quantize_grid_sec | No | 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. | |
| transpose_semitones | No | Signed semitone shift applied to all transcribed notes before scale snapping (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||