Build a Generative Ambient Chime Toy With Pentatonic Notes in One HTML File

A ready-to-paste prompt that builds a calm ambient music toy where every tap drops a glowing, drifting ripple and a pentatonic chime, with an auto-play mode.

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

The prompt

Prompt
Act as a creative front-end developer and sound designer. Build Tidepool Chimes, a generative ambient music toy set in a dark, glowing tide pool. Every click or tap drops a chime into the water. Each chime is a soft bell tone synthesized with the Web Audio API, paired with a glowing ripple that expands, fades and drifts slowly upward on a full-window canvas.

Rules:
1. Snap pitch to an A minor pentatonic scale across three octaves (15 horizontal lanes). Higher on screen means higher pitch, and left-right position sets stereo pan, so every tap sounds pleasant.
2. Build each chime from two sine oscillators with exponential decay plus a gentle feedback delay. Create the AudioContext on the first click, tap or key press, keep master volume low, and include a visible mute button.
3. Add an Auto-play toggle that wanders the scale in small steps at relaxed, irregular intervals. Dragging strums across lanes.
4. Keyboard: keys 1-9 play notes from low to high, Space toggles auto-play, M mutes.
5. Use a deep navy background, teal-to-violet note colors, faint lane lines and drifting motes. Add a small info panel with the title, instructions and buttons. Respect prefers-reduced-motion by shrinking ripples and stopping drift.
6. Use no external files, fonts, libraries, storage or alerts. The canvas resizes with the window from 360 to 1280px.

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: Tidepool Chimes, a calm generative chime pool.

Click or tap anywhere on the dark water to drop a glowing ripple and a soft bell note. Higher taps ring higher, and left or right taps pan the sound. Drag to strum across the 15 pentatonic lanes, or press 1–9 to play notes from low to high. Hit Auto-play (or Space) and the pool plays a slow, wandering melody by itself. M or the Sound button mutes.

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

Tips and common edits

Why this works

  • Locking every note to a pentatonic scale removes clashing intervals, so random taps and auto-play always sound calm.
  • Two decaying sine partials plus a filtered feedback delay give a bell-like shimmer without any audio files.
  • Lanes, a visible panel and keyboard shortcuts make the toy obvious on first load across mouse, touch and keys.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as tidepool-chimes.html and open it in any browser, or use the chat's preview/canvas. Tap once to start the sound.

Common edits

  • Swap the scale steps (e.g. 0,2,4,7,9 for major pentatonic) or change the base frequency to retune the whole pool.
  • Change auto-play timing or ripple colors and size for a slower, sleepier mood or a brighter, busier one.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Sound Effects & Music