All experiments
04 / 07
Mechanical toggle
Flip the lever, rock the switch, turn the knob. Sound on.
Sound3D
Loading the lab
How it works
- React Three Fiber
- three.js
- Web Audio
- Vibration API
Three controls on a machined panel, modelled in three.js and lit by procedural light panels. Each runs a small physics model: the lever is bistable, so it resists and then snaps over centre; the rocker has a sprung pivot; the knob has 12 detents that pull it to the nearest step.
Every click is synthesised as it happens, a burst of filtered noise for the contact plus a short low sine for the body. The pitch changes a little each time, so it never sounds like a loop. Phones get a short vibration on each detent too.