Drums to MIDI / step sequencer
fl_extract_drumsDetect kick, snare, clap, and hi-hat hits in a drum loop or stem, export a MIDI file, and optionally write the extracted step patterns to FL Studio channels.
Instructions
Detect the hits in a drum loop or stem and sort them into kick, snare, clap, closed and open hi-hat. Always writes a .mid to ~/.flstudio-mcp/exports and returns per-kind step patterns. With to_channels, also writes those steps into the CURRENT pattern of the given channels (one undo step: fl_rollback_last_change).
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": "fl_extract_drums"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo; auto-detected if omitted. | |
| bars | No | How many bars to preview / write (16 steps each). | |
| path | Yes | Drum loop or drum stem (WAV/FLAC; MP3 needs ffmpeg). | |
| start_bar | No | First bar of the audio to use (0 = start). | |
| to_channels | No | Write into the step sequencer: kind -> channel, e.g. {'kick': 0, 'snare': 1, 'closed hat': 2}. Kinds: kick, snare, clap, closed hat, open hat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||