oneshotlm
Compare all models on this prompt →

Drum machine · seed-2-1-turbo

Output generated Cost / run $0.0198 Runtime 81.8s

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

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

METRICS

runtime81.8s
tokens in9.7k
tokens out6.5k
cached2.7k
cost / run$0.0198
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.