A dark 3D hall of floating objects, each with its own voice synthesised live in your browser. Sounds are placed in space with HRTF panning, so you find your way by ear. Six objects are easy to spot. A seventh stays hidden until you walk far enough into the dark.
The game opens full window from this page, and the menu has a link that brings you back here. Nothing downloads or installs. It starts in a dark, quiet hall, and everything you learn about it comes through your ears.
Opens in this tab. On desktop the mouse pointer is captured for looking around, and Esc gives it back.
The Web Audio graph is wired by hand, which keeps the signal path readable: voice, panner, resonance gain, interaction gain, then a dry bus and a reverb send.
Generating the voices keeps the build tiny, lets each one be tuned to a precise fundamental, and means there are no loading screens or licences to track.
Opening the menu suspends the audio context as well as the scene, so the hall really stops while you read the controls or the story.
Audio, objects, connections and the main loop live in four small scripts with no bundler, so the whole game can be hosted as static files.
Each object has one voice and one name on the plate that appears when you interact with it. The fundamentals are spread out on purpose, which keeps the voices from piling onto the same part of the spectrum and hiding each other.
| Object | Voice | Fundamental | Built from |
|---|---|---|---|
| resonance | Drone | 110 Hz | Four detuned sine oscillators and a slow LFO |
| pulse | Pulse | 220 Hz | Square wave, amplitude LFO and a bandpass filter |
| scatter | Granular | 165 Hz | Five detuned grains with randomised envelopes |
| breath | Breath | 80 Hz | Sawtooth through a lowpass swept by a 0.18 Hz LFO |
| chime | Chime | 528 Hz | Inharmonic partials with exponential decay |
| ground | Sub | 55 Hz | Sine through a 120 Hz lowpass, with slow drift |
| whisper | Hidden | 880 Hz | Three sine partials with micro LFOs, very quiet |
With almost no light to trust, the sound has to carry the job of showing where things are. These are the perceptual ideas the audio is built around.
HRTF filtering gives each voice a direction, and distance shapes level so you can tell near from far while you turn your head.
Fundamentals are spaced apart across the voices, so several objects can sound at once and each one stays audible.
The balance between direct sound and reverb changes with how close you are to the nearest object, which adds depth to the level cue.
The whole game is plain files with no build step. audio.js holds the Web Audio engine, the seven synth builders, the panners and the reverb. objects.js defines the floating objects and ties each one to a voice. connections.js draws the lines between harmonically related pairs, and main.js runs the scene, the player controller, the menu and the visualiser.
If you need spatial audio, procedural sound or interactive audio systems built on how people actually localise and hear, I'd love to hear about your project.