oneshotlm
Compare all models on this prompt →

Piano synth · gpt-5.6-luna

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 · 8 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
thinking
**Creating index.html**

I need to get started on creating the index.html file, so that's my main focus right now. First, I’ll inspect the files to gather the necessary information while keeping an organized approach. It's important to ensure everything is structured correctly from the beginning. I'll make sure to follow the right procedures as I work on this, making adjustments as needed. Let’s get this right!
bash {"command":"pwd && ls -la && file tone.min.js 2>/dev/null || true","timeout":10}
toolResult

/tmp/ws total 344 drwxr-sr-x. 2 node node 25 Aug 1 17:53 . drwxrwsrwx. 3 root node 16 Aug 1 17:53 .. -rw-r--r--. 1 node node 349169 Aug 1 17:53 tone.min.js

assistant
write /tmp/ws/index.html (12265 bytes)
toolResult

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

assistant
edit {"path":"/tmp/ws/index.html","edits":[{"oldText":"key.style.left = `calc(${(pos + 1) * 100 / 14}% - 4.1%)`;","newText":"key.style.left = `ca
toolResult

Successfully replaced 1 block(s) in /tmp/ws/index.html.

assistant

Created `/tmp/ws/index.html` with: - Playable polyphonic piano keyboard - Mouse, touch, and computer-key controls - Tone.js synthesis using the provided `tone.min.js` - ADSR envelope controls - Oscillator selection - Master volume control - Visual key press feedback and audio status indicator - Fully self-contained HTML, CSS, and JavaScript with no external resources

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

modelgpt-5.6-luna
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Clean piano UI with ADSR sliders, drag/click highlights keys and shows note played, WASD/arrows also trigger notes.

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.1%
on drag1.4%
on wheel1.4%
on enter + space10.7%
on arrow keys10.7%
on w/a/s/d0.0%
frame spread72.5 / 255
console errors0
js errors none

METRICS

runtime36.6s
tokens in12
tokens out4.9k
cached9.1k
cost / run$0.0180