Note
What is this? It plays a gong at random intervals.
But why? Because it can.
A tiny static site that synthesizes a gong sound using the Web Audio API.
Files added:
index.html- main page and UIcss/style.css- stylingjs/gong.js- Web Audio gong synthesizer and UI wiring
How to use
-
Open
index.htmlin a modern browser (Chrome, Edge, Firefox, Safari).- For the best experience, serve the directory with a static server instead of double-clicking the file.
-
Click the "Strike" button or press Space / Enter to play the gong. Adjust volume, tone, and dampening.
Quick local server (Python 3) — run in the project root:
python3 -m http.server 8000
# then open http://localhost:8000 in your browserNotes
- The gong is synthesized — no audio files are bundled.
- If audio doesn't play on first interaction, click/tap the page to unlock audio on some mobile browsers.
Nix flake
This repository includes a flake.nix with a convenient defaultApp and devShell.
- Start the dev server with:
# run this from the project root and open http://localhost:8000
nix run