Write Transcribed Notes to Piano Roll
voice_notes_to_piano_rollConvert 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
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Project tempo in BPM used to convert `start_sec`/`duration_sec` into Piano Roll bars (default 120.0). | |
| notes | Yes | 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`. | |
| scale | No | Optional scale name from `gen_list_scales` (applied only when `scale_root` is also given). | |
| scale_root | No | Optional key root pitch class (e.g. 'C', 'A', 'F#'); paired with `scale` to snap pitches into key. | |
| clear_first | No | If True (default), clear the currently open Piano Roll before writing; set False to append. | |
| quantize_grid_sec | No | Optional grid spacing in seconds to snap note starts (omit/None to keep original timing). | |
| transpose_semitones | No | Signed semitone offset applied before scale snapping (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||