Drop the stems of a song and watch each one as its own particle field, driven by its own frequencies: the drums are a shell that kicks outward, the bass a ring that swells, the vocals a breathing core. Mute a stem and its layer fades to a ghost, solo one and the mix comes apart in front of you. Up to six stems are matched to a layer by file name, so the output of Snapstems or any other splitter loads as is, and nothing is uploaded. Each stem plays through its own Web Audio analyser, and the 26,000 particles of each layer are placed entirely on the GPU with three.js r187, the WebGPU renderer and TSL. The demo loop is synthesized in the browser, so there are no samples and no copyrighted audio.
Tech Stack
- Three.js
- WebGPU
- TSL
- Web Audio API
- Vite
- GitHub Actions
More Projects
LUT Cube
See what a color grade really does: every pixel of a picture becomes a dot in the RGB cube, placed by its red, green and blue, and the whole cloud moves as a look is applied, next to a before/after preview. A second view shows the LUT itself, a 17 x 17 x 17 grid of colors bent out of shape. Drop your own image and your own .cube 3D LUT, the format LUTMatch writes and Resolve, Premiere and Final Cut read, and nothing is uploaded. I wrote the .cube parser and the trilinear lookup, covered by a self-check, and the five built-in looks are plain color math sampled into LUTs. Each of the roughly 45,000 dots slides between its original and its graded color on the GPU with three.js r187, the WebGPU renderer and TSL, and the dots keep the exact colors of the pixels.
Learn to Drive
Sixty cars learn to drive the JP Racing track in your browser. Each one is steered by a tiny neural network that starts out as random numbers, and nobody shows them how to drive: the cars that get furthest pass their network on to the next generation, with small random changes. The first generations crash within metres, a car usually reaches the finish within about ten generations, and from there the best time keeps dropping. The leading car shows its seven distance sensors and its network live, and you can run the simulation up to 64 times faster, watch the whole track or start over. The road is read from JP Racing's own 3D track model: a tool I wrote finds the edges of the road surface and walks it from the start gate to the finish gate, 1,137 m in all. The physics, the sensors, the network and the evolution loop are plain JavaScript with no machine-learning library, seeded so that an automated test replays a full run and checks that a car reaches the finish. Drawn with three.js.
Paint Lab
A tray of wet paint in your browser. Pick red, yellow, blue, white or black, drag to pour it, drag fast to stir, and the paints mix the way real paint does: blue and yellow make green, red and yellow make orange, all three make brown. The liquid is a fluid simulation that runs on the graphics card, written in plain WebGL2 with no library: each pixel holds an amount of each of the five paints, not a color, and those amounts flow, swirl and settle. The color of a pixel is then computed with the mixing rule of My Little Lab, my color mixing app for children, which blends pigments instead of averaging screen colors. That is why blue and yellow give green here, and not grey. The amount of paint is also read as a height and lit from one side, which gives the wet shine. When the page opens, three pools are poured and stirred on their own, until you touch the tray.