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.
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
METRICS
Transcript · 6 messages
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.
thinking
[REDACTED].
{"path":"tone.min.js"}/*! For license information please see Tone.js.LICENSE.txt */ [Showing lines 1-1 of 3 (50.0KB limit). Use offset=2 to continue.]
thinking
[REDACTED].
index.html (4679 bytes)Successfully wrote 4679 bytes to index.html
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).