oneshotlm
Compare all models on this prompt →

Drum machine · ling-2.6-1t

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 complete 16-step drum machine with synthesized sounds, a clickable grid, and BPM controls.

write /tmp/ws/index.html (24853 bytes)
toolResult

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

assistant

I've created a complete 16-step drum machine with all the requested features: **Features:** - **16-step grid** for 4 drum sounds: Kick, Snare, Hi-Hat, and Clap - **Web Audio API synthesis** - all sounds generated programmatically (no samples): - **Kick**: Sine wave with pitch sweep and low-pass filter - **Snare**: Noise burst with bandpass + triangle tone - **Hi-Hat**: High-frequency noise with bandpass and high-pass filters - **Clap**: Layered noise bursts with resonance - **Play/Pause/Stop controls** with visual feedback - **Adjustable BPM** slider (40-240 BPM) - **Visual playhead** that moves across the grid in real-time - **Color-coded** rows and active steps - **Responsive design** that works on mobile and desktop - **Keyboard support** (Spacebar to play/pause) - **Default beat pattern** loaded on startup (classic 4/4 beat) **How to use:** 1. Click step buttons to toggle sounds on/off (they light up when active) 2. Press ▶ Play to start the beat 3. Adjust BPM with the slider 4. Press ⏹ Stop to reset The entire app is self-contained in a single HTML file with no external dependencies.

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

modelling-2.6-1t
vendorinclusionai
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 partial

Drum machine grid with preset pattern; Space/Enter toggles play/pause and shows step playhead, but click/drag/wheel/arrows don't toggle cells.

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

METRICS

runtime57.7s
tokens in12k
tokens out9.4k
cached1.6k
cost / run$0.0067