oneshotlm
Compare all models on this prompt →

Drum machine · qwen3-next-80b-a3b-instruct

Output generated Cost / run $0.0052 Runtime 43.6s

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

modelqwen3-next-80b-a3b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime43.6s
tokens in7.0k
tokens out4.1k
cached1.1k
cost / run$0.0052
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 standalone 16-step drum machine with Web Audio API synthesis as requested.

→ write index.html (17150 bytes)
toolResult

Successfully wrote 17150 bytes to index.html

assistant

I've created a complete 16-step drum machine as requested. The application is a single self-contained HTML file with: - A 4-row grid (kick, snare, hi-hat, clap) with 16 steps each - Clickable steps to activate/deactivate patterns - Play/Stop controls - Adjustable BPM slider (60-200 BPM) - All sounds synthesized using Web Audio API with no external resources - Visual feedback showing the current step during playback The drum machine features: - Kick: Sine wave with noise attack - Snare: Combination of noise and sine wave - Hi-hat: White noise with short decay - Clap: Combination of noise and sine wave All sounds are generated in real-time with proper envelopes and no external audio files or CDNs. The interface is fully responsive and works entirely offline.