oneshotlm
Compare all models on this prompt →

Piano synth · muse-spark-1.2

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 · 6 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 (30858 bytes)
toolResult

Successfully wrote 30858 bytes to index.html

assistant
bash {"command":"ls -lh; echo \"---\"; head -n 5 index.html; echo \"---\"; grep -c \"tone.min.js\" index.html; grep -c \"ADSR\" index.html; ls -l
toolResult

total 376K -rw-r--r--. 1 node node 31K Aug 13 01:30 index.html -rw-r--r--. 1 node node 341K Aug 13 01:29 tone.min.js --- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> --- 1 8 -rw-r--r--. 1 node node 341K Aug 13 01:29 tone.min.js

assistant

Piano built — **index.html** ready: - **Tone.js PolySynth** (`Tone.PolySynth(Tone.Synth)`, 16-voice) with real-time **ADSR** (Attack/Decay/Sustain/Release sliders) and waveform selector (sine/triangle/sawtooth/square) driving `oscillator.type` + envelope visualization canvas - **Visual keyboard**: 2 octaves (C4–B5, octave-shift with `Z`/`X` / on-screen ±), white/black keys with `active` glow, drop shadows, velocity slider, master volume - **Controls**: mouse / touch / drag-glide, **computer keys** `A W S E D F T G Y H U J K O L P ; ' ] \` mapped across 2 octaves, on-screen caps + bottom legend, Space-sustain pedal (latching reverb-style), "All Off" - **Feedback**: active key + computer-cap highlighting, *Now Playing* pills, note count, power indicator, envelope graph updating live; fully self-contained, no network — loads `tone.min.js` via `<script src="tone.min.js">`. Open `index.html` and click/press a key to start audio.

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

modelmuse-spark-1.2
vendorMeta
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

Full-featured piano UI with ADSR envelope, waveform selection, and keyboard mapping; arrow keys shift octaves, no visible key press highlight.

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.2%
on drag1.4%
on wheel0.0%
on enter + space0.1%
on arrow keys39.5%
on w/a/s/d0.0%
frame spread68.9 / 255
console errors0
js errors none

METRICS

runtime54.5s
tokens in25k
tokens out12k
cached3.7k
cost / run$0.0799