Skip to content

Personal project · Open source · 2026

Visualizer

A real-time music visualizer: the colors come from the album art and the motion from the sound. On the web, Linux and Android.

See it live ↗

Screenshots (06)

My role

Idea, design, development and release on the web, Linux and Android, with Claude Code as a pair programmer.

Stack

  • TypeScript
  • WebGL2
  • GLSL
  • Web Audio
  • Vite
  • Tauri v2
  • Rust
  • Kotlin
  • PipeWire
  • GitHub Actions

The problem

Old music players had visualizers; today there are hardly any left, and the ones around don't know which song is playing. Spotify doesn't let you read its audio or its audio data, so I solved it the other way round: the colors come from the album art and the motion from my own analysis of the sound. The web demo searches any song and plays its 30-second preview; the Linux and Android apps listen to everything the device plays, follow whichever player is on and add an overlay above the other windows.

Highlights

  1. 01Seven WebGL2 scenes that cross-fade: ink in water with a real fluid solver, a volumetric nebula and aurora (ray marching), a 120,000-particle galaxy that changes shape, a kaleidoscope, a tunnel and a terminal in the style of my desktop (rOS).
  2. 02Palette from the cover: k-means in OKLab over 64×64 pixels, split into five roles (background, primary, secondary, accent and highlight); a black-and-white cover gets my brand's lime.
  3. 03My own audio analysis: four bands with automatic gain, beats from spectral flux in the kick range with an adaptive threshold, and tempo from an inter-onset histogram.
  4. 04Linux app (Tauri v2): it hears all the audio through PipeWire, follows the player over MPRIS and adds a click-through overlay above every window, in seven styles.
  5. 05Android app with an overlay above other apps, on my own F-Droid repository; signed packages for pacman, APT and DNF plus an AppImage, tested on 6 distros before every release.

What I learned

  • → 01Measure before saying "fixed": the audio seemed to arrive, but the scenes didn't move. pw-record without --raw writes a file with a header, and the page was reading garbage. Now I check the real level, not just that data arrives.
  • → 02Making something look good is research too: three scenes were flat 2D noise and looked bad; rebuilding them with reference techniques (a real fluid solver and ray-marched volumes) changed them completely.
  • → 03In an app with windows, overlays and processes, an end-to-end test in the real app beats any unit test: a bug that "kept happening" was the old binary that had never been closed.

Live

Online on my domain

Projects that are online. Some can be used without an account; others ask you to sign in, and their case study explains how they work inside.

Posts about this project

Next project

AdvAI →

← Back