Piano synth · mistral-medium-3.1
Output generated Cost / run $0.0097 Runtime 33.2s
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 · 4 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.
index.html (14429 bytes)Successfully wrote 14429 bytes to index.html
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.