oneshotlm
Compare all models on this prompt →

Piano synth · mistral-medium-3.1

Output generated Cost / run $0.0097 Runtime 33.2s

Prompt for this run

Using the pre-provided tone.min.js (global Tone), build a playable piano keyboard controlled by mouse and computer keys that synthesizes notes with an ADSR envelope and visual key feedback.

⛨ 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-medium-3.1
vendorMistral AI
harnesspi-agent
generated2026-08-01

METRICS

runtime33.2s
tokens in7.0k
tokens out4.2k
cached4.2k
cost / run$0.0097
Transcript · 4 messages
user

Using the pre-provided tone.min.js (global Tone), build a playable piano keyboard controlled by mouse and computer keys that synthesizes notes with an ADSR envelope and visual key feedback.

assistant
→ write index.html (14429 bytes)
toolResult

Successfully wrote 14429 bytes to index.html

assistant

Created a self-contained `index.html` with: - **Visual piano keyboard** (2 octaves, C4–C6) with white/black keys, labels, and active-state highlighting - **ADSR envelope controls** (attack/decay/sustain/release sliders) with real-time visualization - **Waveform selection** (sine/square/sawtooth/triangle) - **Dual input methods**: - Mouse click/drag on keys - Computer keyboard (A–’ keys, including black keys via W/E/T/Y/U/O/P) - **Tone.js integration** for audio synthesis (using the pre-provided `tone.min.js`) Open `index.html` in a browser to use. No network requests or external dependencies.