oneshotlm
Compare all models on this prompt →

Drum machine · glm-5.3

Output generated Cost / run $0.0212 Runtime 34.5s

Prompt for this run

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 ↗

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

modelglm-5.3
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-27

METRICS

runtime34.5s
tokens in6.2k
tokens out3.4k
cached2.1k
cost / run$0.0212
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
→ write index.html (10004 bytes)
toolResult

Successfully wrote 10004 bytes to index.html

assistant

Done — `index.html` contains a complete self-contained 16-step drum machine: - **Tracks**: Kick, Snare, Hi-Hat, Clap (color-coded rows), with a preset groove pre-loaded - **Synthesized sounds** via Web Audio API: kick (pitch-swept sine), snare (triangle tone + filtered noise), hi-hat (band/high-passed noise), clap (multi-burst noise through a bandpass) - **Sequencer**: lookahead scheduling for rock-solid timing, live playhead highlight, beat markers every 4 steps - **Controls**: Play/Stop button, BPM slider (40–240), Spacebar toggle, and step preview when you click a cell while stopped