Build a Pitch Pipe and Tuner Reference Tone Player for Guitar, Ukulele and Violin
A prompt that produces a single-file pitch pipe app playing sustained per-string reference tones for guitar, ukulele and violin, with A4 calibration from 432 to 446 Hz.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a front-end developer who builds musician tools with the Web Audio API. Build Truetone Pitch Pipe, a clean reference-tone player that helps players tune guitar, ukulele and violin by ear. The user picks an instrument, then taps a string to hear a steady sustained note until they tap it again.
Rules:
1. Tunings: guitar standard E2 A2 D3 G3 B3 E4, ukulele re-entrant G4 C4 E4 A4, violin G3 D4 A4 E5. Compute every frequency from A4 using equal temperament, and show each string's note name, octave and frequency to two decimals.
2. A4 calibration: a slider plus minus and plus buttons from 432 to 446 Hz in 1 Hz steps; a note that is playing glides smoothly to the new pitch.
3. Sound: synthesize with oscillators only, offering Pure, Warm and Reed tone colors through simple harmonic blends. Create the AudioContext on the first click, tap or key press, fade notes in and out to avoid clicks, keep master volume low, and include a visible mute toggle.
4. Add a Play all strings button that steps through each string for about 2.5 seconds, plus a Stop button.
5. Keyboard: number keys play strings, Space stops, left and right arrows nudge A4, M mutes. Announce the current note in a live region.
6. Dark, high-contrast layout with one warm accent, large tappable string buttons, fits 360 to 1280px, and a soft pulse ring that becomes static under prefers-reduced-motion.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- Listing the exact notes for each tuning and requiring equal-temperament math from A4 makes every frequency correct and keeps the calibration consistent.
- Requiring fade-in and fade-out envelopes plus AudioContext creation on the first gesture avoids clicks and browser autoplay blocks.
- Toggle-to-stop strings, a live region and keyboard shortcuts make the tool easy to use hands-free while holding an instrument.
Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as truetone.html and open it in any modern browser, or run it in the chat's preview or canvas panel. Click a string to start sound.
Common edits
- Add more tunings such as Drop D, DADGAD, baritone ukulele, viola or cello by adding note rows to the instrument list.
- Change the default A4 to 442 Hz for orchestral use, or widen the slider range to 415 Hz for baroque pitch.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Guided Breathing Exercise App with Soft Rising Tones in One HTML File
A prompt that produces a single-file breathing guide with box, 4-7-8 and coherent patterns, an expanding circle and gentle synthesized sine swells.
Build a Pomodoro Focus Timer with Synth Chimes and Brown Noise in HTML
A single HTML file Pomodoro timer with a progress ring, four-round cycles, distinct synthesized work and break bells, and a toggleable brown-noise bed.
Build a Retro 8-Bit Sound Effect Board with Tunable Chiptune Pads in HTML
A single HTML file with Jump, Coin, Laser and Explosion pads, each with pitch, decay and noise sliders, a randomize button and a live sweep preview.
Build a Sound-Wave Explorer with Live Oscilloscope in a Single HTML File
You get a one-file interactive sound lab where students hear and see sine, square, triangle and sawtooth waves while changing frequency and amplitude.
Build a Theremin-Style Pointer Instrument with Live Waveform in One HTML File
A ready-to-paste prompt that builds a canvas theremin. Horizontal motion sets pitch, vertical motion sets volume, notes can snap to a scale, and a live oscilloscope trace shows the sound.
Build an Accurate Web Audio Metronome with Tap Tempo in One HTML File
A single HTML file metronome with look-ahead Web Audio timing, tempo and time signature controls, accented downbeats, tap tempo and a pulsing beat display.