oneshotlm
Compare all models on this prompt →

Drum machine · grok-4.6

Build a 16-step drum machine with a clickable grid for kick, snare, hi-hat, and clap, all sounds synthesized with the Web Audio API, plus play/stop and an adjustable BPM.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

Build a 16-step drum machine with a clickable grid for kick, snare, hi-hat, and clap, all sounds synthesized with the Web Audio API, plus play/stop and an adjustable BPM.

assistant
thinking
The user wants me to build a 16-step drum machine as a single self-contained HTML file. Let me create a polished, fully functional drum machine with:

I'll build a self-contained 16-step drum machine with synthesized sounds, a clickable grid, play/stop, and BPM control.

write /tmp/ws/index.html (15814 bytes)
toolResult

Successfully wrote 15814 bytes to /tmp/ws/index.html

assistant
thinking
The file was written successfully. The user asked for a single-page 16-step drum machine with all requirements met. I should give a brief summary of what was built.

`index.html` is a self-contained 16-step drum machine. No external assets. - **Grid:** kick, snare, hi-hat, clap × 16 clickable steps (a starter beat is already programmed) - **Sounds:** Web Audio synthesis — pitch-swept kick, noisy snare, filtered hat, multi-burst clap - **Transport:** play/stop button, Space to toggle, BPM 60–180 - **Look-ahead scheduler** so timing stays tight while the playhead lights the current column

TAKE IT TO CODE

A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.

RUN

modelgrok-4.6
vendorxAI · Grok
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

16-step drum machine grid with kick/snare/hi-hat/clap toggles, BPM slider, play/stop responds to click and space, sequencer runs.

Vision grade · anthropic/claude-sonnet-5

MEASUREMENTS

Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.

idle motion0.0%
on click0.3%
on drag0.1%
on wheel0.1%
on enter + space1.1%
on arrow keys1.3%
on w/a/s/d1.2%
frame spread28.5 / 255
console errors0
js errors none

METRICS

runtime64.0s
tokens in8.4k
tokens out5.4k
cached256
cost / run$0.0487