oneshotlm
Compare all models on this prompt →

Piano synth · nova-2-lite-v1

Output generated Cost / run $0.0319 Runtime 82.0s

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

modelnova-2-lite-v1
vendorAmazon · Nova
harnesspi-agent
generated2026-08-01

METRICS

runtime82.0s
tokens in8.3k
tokens out12k
cached0
cost / run$0.0319
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
thinking
[REDACTED].
→ read {"path":"tone.min.js"}
toolResult

/*! For license information please see Tone.js.LICENSE.txt */ [Showing lines 1-1 of 3 (50.0KB limit). Use offset=2 to continue.]

assistant
thinking
[REDACTED].
→ write index.html (4679 bytes)
toolResult

Successfully wrote 4679 bytes to index.html

assistant
thinking
[REDACTED].

✅ Created `index.html` with a fully functional piano keyboard that: - Uses Tone.js for synthesis with ADSR envelope (attack: 5ms, decay: 100ms, sustain: 80%, release: 800ms) - Features visual key feedback (yellow for white keys, dark gray for black keys) - Supports both mouse clicks and computer keyboard input - Works completely offline with no external resources You can now open `index.html` in any modern browser and play the piano using your mouse or keyboard keys (A-K for white keys, W-U/O-P-[-\] for sharps).