oneshotlm
Compare all models on this prompt →

Drum machine · seed-2-1-turbo

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
A 16-step drum machine with specified features will be built using Web Audio API, and implemented in a single HTML file with inline CSS and JS.
write /tmp/ws/index.html (16715 bytes)
toolResult

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

assistant
thinking
File written, will verify and summarize.

Built the 16-step drum machine in `/tmp/ws/index.html`. Features: - **4 tracks**: Kick, Snare, Hi-Hat, Clap — all synthesized via Web Audio API (oscillators + noise buffers + envelopes, no external samples) - **16-step clickable grid**: Click cells to toggle steps; toggling on previews the sound - **Play/Stop button**: Large circular button with play/stop icons - **BPM slider**: Adjustable from 60–200 BPM, with live readout - **Presets**: Clear, Rock, House, Hip Hop - **Visual feedback**: Current step pulses white, beat markers (steps 1,5,9,13) are highlighted - **Spacebar shortcut**: Toggles play/stop - **Scheduler**: Uses lookahead scheduling for rock-solid timing - Fully self-contained — no external resources Open it in a browser and click the play button (or press Space) to start.

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

modelseed-2-1-turbo
vendorByteDance · Seed
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

16-step drum machine grid works: clicks toggle cells, play/stop toggles, sequencer plays with moving playhead, BPM slider 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.5%
on wheel0.1%
on enter + space0.8%
on arrow keys1.4%
on w/a/s/d1.4%
frame spread13.4 / 255
console errors0
js errors none

METRICS

runtime81.8s
tokens in9.7k
tokens out6.5k
cached2.7k
cost / run$0.0198