oneshotlm
Compare all models on this prompt →

Drum machine · mistral-large-2512

Output generated Cost / run $0.0082 Runtime 45.2s

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

modelmistral-large-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime45.2s
tokens in6.5k
tokens out3.7k
cached1.4k
cost / run$0.0082
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 /tmp/ws/index.html (12987 bytes)
toolResult

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

assistant

The 16-step drum machine is ready! Open `/tmp/ws/index.html` in a modern browser to use it. Here's what it includes: - **4 Tracks**: Kick (red), Snare (green), Hi-Hat (blue), Clap (yellow) - **16 Steps**: Click any step to toggle it on/off - **Controls**: - Play/Pause button - Stop button - BPM adjustment (60-240) - **Fully synthesized sounds** using the Web Audio API (no samples) - **Self-contained**: No external resources or network requests The UI is dark-themed with color-coded steps matching their instrument. Active steps light up when triggered.