oneshotlm
Compare all models on this prompt →

Drum machine · kat-coder-pro-v2

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

I'll create a fully functional drum machine with synthesized sounds using the Web Audio API. This will include a 16-step sequencer grid for kick, snare, hi-hat, and clap sounds, with play/stop controls and adjustable BPM.

write /workspace/index.html (18558 bytes)
toolResult

Successfully wrote 18558 bytes to /workspace/index.html

assistant

I've created a complete 16-step drum machine with the following features: **Instruments:** - Kick, Snare, Hi-Hat, Clap - all synthesized with Web Audio API **Controls:** - Play/Stop buttons - Clear pattern button - Adjustable BPM (60-200) with default 120 **Grid:** - 16-step sequencer with clickable cells - Visual feedback for active steps and current playback position - Each instrument row has distinct colors - Step numbers with beat markers (every 4th step) **Sound Synthesis:** - Kick: Low frequency oscillator with pitch envelope - Snare: Noise with highpass filter + tone oscillator - Hi-Hat: High-frequency noise with highpass filter - Clap: Multiple short noise bursts with bandpass filters **User Experience:** - Smooth animations and hover effects - Current step indicator - Keyboard shortcut (Space) for play/stop - Responsive design - Modern gradient UI with glassmorphism effect The drum machine is fully functional and self-contained in a single HTML file. Just open it in a browser and start making beats!

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

modelkat-coder-pro-v2
vendorKwaipilot
harnesspi-agent
generated2026-07-31

EVALUATION

4/5 working

16-step drum machine with kick/snare/hihat/clap grid, play/stop/clear, BPM control, clicking toggles steps and playback advances.

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

METRICS

runtime61.0s
tokens in8.5k
tokens out5.1k
cached0
cost / run$0.0087