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.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a front-end developer and sound designer who builds calm, accessible web tools.

Build Tidewell, a guided breathing page with soft synthesized tones. A glowing circle expands on each inhale, rests during holds and shrinks on each exhale. A gentle sine tone rises in pitch and swells in volume on the inhale, then falls and fades on the exhale.

Rules:
- Offer three patterns as toggle buttons: Box (4-4-4-4), 4-7-8 (inhale 4, hold 7, exhale 8) and Coherent (5.5 in, 5.5 out). Show the active pattern's description and timing.
- Show the phase name, a whole-second countdown, a thin progress ring around the circle, completed cycles and session time.
- Controls: Start/Pause and Reset buttons. Space starts or pauses, keys 1-3 pick a pattern, M mutes and R resets. Everything also works with mouse and touch.
- Audio: use the Web Audio API only, created on the first click or key press. Route two quiet sine oscillators a fifth apart through a lowpass filter. Use smooth ramps with no clicks, play a soft chime at each phase change and show a visible sound toggle. Keep peak volume low.
- Design: deep navy background, teal for inhale, lavender for hold, peach for exhale, system fonts and generous spacing. The page fits 360-1280px wide.
- With prefers-reduced-motion, keep the circle still and show the breath through brightness and the ring instead.

Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Tidewell, a guided breathing page with soft sine swells.

Pick Box, 4-7-8 or Coherent, then press Start (or Space). The circle grows as you breathe in, rests while you hold and shrinks as you breathe out. A low tone rises and falls with it, and a quiet chime marks each phase change. Use keys 1-3 to switch patterns, M to mute and R to reset. Try 4-7-8 for three cycles and watch the counters.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Exact timings for each pattern leave the model nothing to guess, so the phases, countdown and circle stay in sync on the first try.
  • Asking for ramped gain and frequency on sine oscillators gives soft, click-free swells instead of harsh beeps.
  • Naming the reduced-motion fallback and keyboard shortcuts up front builds accessibility in from the start.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as tidewell.html and open it in any browser, or run it in the chat's preview or canvas. Press Start to hear the tones.

Common edits

  • Add a custom pattern with sliders for inhale, hold and exhale seconds, or a session timer that ends after 3, 5 or 10 minutes.
  • Change the tone to a warmer triangle wave or a lower root note, or swap the navy and teal palette for a dawn theme.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Sound Effects & Music