Play the pads
crosspad_stimulusPlay CrossPad pads from the host using a rate or timed pattern in the background; check status to separate sent hits, registered pad stats, and CDC drops.
Instructions
[ESP HW] Play the CrossPad's pads from the host: a rate across a pad set, or a pattern with real timings ({t_ms, pad, vel, gate_ms}) to play something. Runs in the background behind a stim_N handle so you can record or read state meanwhile. status reports what was sent, the PAD_STATS delta the device actually registered and any CDC drops, so transport loss and engine loss are separated. The CDC path is clamped to the rate the 64-deep command queue sustains and says so in plan.throttled.
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": {
"action": "<action>"
},
"name": "crosspad_stimulus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pads | No | start: which pads to play when using a rate | |
| seed | No | start: makes humanize reproducible | |
| chord | No | start: strike the whole pad set together instead of in turn | |
| action | Yes | start → stim_N handle; status while it plays; stop ends it early | |
| device | No | ||
| handle | No | stim_N handle; required by status and stop | |
| gate_ms | No | ||
| pattern | No | start: an explicit schedule — use this to play something, rather than a metronome | |
| rate_hz | No | start: hits per second across the pad set. The CDC path is clamped to what the 64-deep command queue sustains, and the clamp is reported | |
| seconds | No | start: how long to play (rate mode) | |
| velocity | No | ||
| transport | No | start: how hits reach the board. cdc is the control path; the sysex ones survive the USB-audio profile | |
| cdc_handle | No | start: play through an already-open CDC session, so you can still read state while it runs | |
| humanize_ms | No | start: jitter each hit by up to this much, so it does not sound like a machine |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| docs | No | ||
| next | No | ||
| plan | No | ||
| error | No | ||
| action | No | ||
| device | No | ||
| handle | No | ||
| notice | No | ||
| result | No | ||
| status | No | ||
| success | Yes |