Clear Piano Roll
piano_roll_clearDeletes every note from a chosen channel’s Piano Roll in a selected or active pattern; specify channel and pattern to avoid clearing the wrong instrument.
Instructions
Delete every note from a single channel's Piano Roll in the active or specified pattern.
Always pass channel (and pattern) to avoid wiping the wrong instrument. Use
piano_roll_delete_notes to remove individual notes, channel_clear_step_sequence
for step-sequencer grids, or pattern_clear to wipe every channel in a pattern.
Undoable via project_undo.
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": "piano_roll_clear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | Optional 0-based global Channel Rack index; when provided, opens that channel's Piano Roll before running the edit. Omit to target whichever Piano Roll is already open. | |
| pattern | No | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||