Personal project / Instrument
Roomtone.
Scan a room’s colors and turn its palette into a five-note chord.
Open project Live in a browser
My work
Camera interaction, perceptual colour clustering, note mapping and browser synthesis.
Working with
JavaScript · OKLab · Web Audio
Inside the build
What would this room sound like?
Context
A camera sees changing light and fleeting objects. A room’s palette should settle before it becomes music.
How it works
Colors are clustered in OKLab and weighted by persistence. Five stable colors map to distinct notes, played with synthesized sound and generated reverb.
In the work
The demo uses a procedurally drawn bedroom, so the complete colour-to-chord flow can be explored without granting camera access.
- Perception
- OKLab gives colour distance a perceptual basis rather than comparing raw RGB channels.
- Continuity
- Persistence weighting limits the influence of a colour that flashes past the camera.
- Sound
- Web Audio synthesizes the notes and reverb in the browser.