Write Drum Notes to Piano Roll
gen_emit_drum_pattern_notesWrites a 16-step genre drum groove as MIDI notes into the open single-channel Piano Roll, with style, repeats, and MIDI map options—ideal for FPC-style multi-pad kits.
Instructions
Write a 16-step drum groove as individual MIDI notes into the currently open single-channel Piano Roll.
Use this for single-channel multi-pad drum instruments (such as FPC—inspect pads
with plugin_fpc_pads first—or when the MIDI bridge is offline). Prefer
gen_emit_drum_pattern_step_seq when driving separate Kick/Snare/Hat Channel Rack
samplers via the step sequencer, or gen_emit_dnb_groove for 2-bar 32-step Drum &
Bass breakbeats. Open the target drum channel's Piano Roll first (ui_open_piano_roll_for_channel).
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": "gen_emit_drum_pattern_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | 16-step genre drum pattern from `gen_list_drum_patterns` (e.g. 'boom_bap', 'trap', 'house', 'four_on_floor', 'reggaeton', 'rock'). | boom_bap |
| repeats | No | Number of times to repeat the 16-step groove (>= 1, default 1). | |
| midi_map | No | Optional drum-voice-to-MIDI-note overrides for keys {'kick','snare','clhat','ophat','clap','tom','ride'}; defaults to GM drum map (kick=36, snare=38, clhat=42, ophat=46, clap=39, tom=45, ride=51). | |
| step_bars | No | Duration of each step in project bars (use 0.0625 for standard 16th-note 1-bar grooves in 4/4; default 0.25 spaces steps by quarter notes). | |
| clear_first | No | If True (default), clear existing notes in the target Piano Roll before writing; set False to append. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||