oneshotlm
Compare all models on this prompt →

Drum machine · muse-spark-1.2

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
write index.html (23843 bytes)
toolResult

Successfully wrote 23843 bytes to index.html

assistant
bash {"command":"ls -lh index.html && head -n 5 index.html"}
toolResult

-rw-r--r--. 1 node node 24K Aug 13 01:25 index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">

assistant

Drum machine built at `index.html` — single-file, offline, no external dependencies. **Features:** - **16-step × 4-track grid** (Kick / Snare / Hi-Hat / Clap) — click or drag-to-paint, active steps glow in track color, per-track mute (M) - **Web Audio synthesis** — Kick (sine pitch sweep + click), Snare (triangle body + band-passed noise), Hi-Hat (high-passed noise + metallic squares), Clap (3× burst + tail) - **Transport:** Play/Stop button (also `Space`), green LED + white playhead + step indicators, accurate scheduler using `AudioContext.currentTime` with lookahead - **BPM 60–200:** slider + ± buttons, live-update - **Extras:** Swing 0-60%, Master Volume, Clear / Randomize / Demo Beat / Fill Hats, audition on step activation All CSS/JS inline, no network requests.

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

modelmuse-spark-1.2
vendorMeta
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

16-step drum machine with kick/snare/hihat/clap grid, BPM, play/stop; space/enter toggles play, step indicator moves, clicks don't visibly toggle pads.

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

METRICS

runtime43.3s
tokens in21k
tokens out9.7k
cached5.3k
cost / run$0.0614