oneshotlm
Compare all models on this prompt →

Drum machine · claude-opus-5

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 · 6 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
I'm building a single-file drum machine with a grid layout, synthesized sounds, play and stop controls, adjustable BPM, swing timing, and volume control.
write /tmp/ws/index.html (12611 bytes)
toolResult

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

assistant
thinking
I need to fix a typo in the hover state styling where the border color has a malformed hex value.
edit {"path":"/tmp/ws/index.html","edits":[{"oldText":" .cell:hover{border-color:#4a5near}\n","newText":""}]}
toolResult

Successfully replaced 1 block(s) in /tmp/ws/index.html.

assistant

`/tmp/ws/index.html` — done. - 4×16 clickable grid (kick, snare, hi-hat, clap) with beat shading, per-lane clear, and click-to-preview track names - All voices synthesized: sine pitch-drop kick, noise+tone snare, filtered noise hat, multi-burst clap; routed through a compressor + master gain - Play/Stop with lookahead scheduler, BPM 50–200, swing, volume, Clear/Random, keyboard shortcuts (Space/C/R), moving playhead

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

modelclaude-opus-5
vendorAnthropic · Claude
harnesspi-agent
generated2026-08-03

EVALUATION

3/5 working

Step-sequencer drum machine; play/stop toggles via space/enter, click added a beat, arrows/wasd show playhead moving but don't navigate grid.

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.3%
on wheel0.0%
on enter + space1.0%
on arrow keys1.3%
on w/a/s/d1.3%
frame spread27.5 / 255
console errors0
js errors none

METRICS

runtime68.6s
tokens in19k
tokens out6.4k
cached13k
cost / run$0.2070