oneshotlm
Compare all models on this prompt →

Drum machine · kimi-k3

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
Write index.html with Web Audio drum machine.
write /workspace/index.html (12052 bytes)
toolResult

Successfully wrote 12052 bytes to /workspace/index.html

assistant
thinking
Done.

Created `/workspace/index.html` — a fully self-contained 16-step drum machine: - **Grid**: 4 tracks (Kick, Snare, Hi-Hat, Clap) × 16 steps, click to toggle, with a beat-grouped layout and moving playhead highlight. - **Synthesized sounds** (pure Web Audio, no samples): - Kick: pitch-dropping sine + noise click transient - Snare: triangle body + band-passed noise - Hi-hat: high-passed noise with fast decay - Clap: band-passed noise with a multi-burst envelope - **Transport**: Play/Stop with a 25 ms lookahead scheduler for sample-accurate timing, BPM slider (60–200) applied live, and a Clear button. - Pre-loaded with a basic house pattern; clicking a cell auditions the sound instantly. Just open the file in a browser — no network or external assets needed.

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

modelkimi-k3
vendorMoonshot · Kimi
harnesspi-agent
generated2026-07-28

EVALUATION

3/5 working

16-step drum machine grid with kick/snare/hi-hat/clap rows, click toggles a cell, BPM slider and play/clear controls present.

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.0%
on wheel0.0%
on enter + space0.1%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread24.2 / 255
console errors0
js errors none

METRICS

runtime94.1s
tokens in4.8k
tokens out4.0k
cached1.8k
cost / run$0.0171