oneshotlm
Compare all models on this prompt →

Piano synth · mistral-medium-3.1

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 ↗
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.

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

EVALUATION

3/5 working

Piano UI with ADSR controls; clicking/dragging highlights keys blue, showing visual feedback works as expected.

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

METRICS

runtime33.2s
tokens in7.0k
tokens out4.2k
cached4.2k
cost / run$0.0097