MopVisualizer

A live music visualizer that runs in Chrome. It listens to whatever is playing and turns it into layered, moving light. Each layer follows its own part of the sound.

I designed MopVisualizer and led it through Clashboard. AI agents wrote the code.

Photosensitivity warning

MopVisualizer shows flashing lights and patterns. Its pictures can flash, flicker and show bright, high-contrast patterns, and they follow the music, so nobody can say in advance what they will do.

A very small number of people may have a seizure when they see flashing lights or patterns. This can happen to people who have never had a seizure and have never been told they have epilepsy. Children and teenagers are more likely to be affected.

If you, or anyone in your family, has epilepsy or has had a seizure, talk to a doctor before using this.

Stop at once, look away and cover one eye with your hand if you feel light-headed or confused, if your vision changes, if your eyes or face twitch, if your arms or legs jerk or shake, or if you lose awareness even for a moment. See a doctor if any of this happens.

To lower the risk, use it in a well-lit room, sit well back from the screen, and do not use it when you are tired. If you show it to an audience, warn them before it starts.

Why I built it

I wanted visuals I could perform with: running on a tablet beside me, often in a dark room, driven by the sound actually in the room, and changed with a Bluetooth pedal so my hands stay free.

The visualizers I looked at each did part of that. MilkDrop-style players look great but give you little control over what each part of the picture listens to. Performance tools like Resolume and TouchDesigner are powerful, but they are desktop rigs, not something you prop up on a stand. What I wanted most was the setup side: give each layer its own frequency range, shape the sound with an EQ and a noise gate before the visuals see it, and save looks as presets I can step through as a setlist.

MopVisualizer started as a simple version of that. The current beta keeps every control from the first version and replaces how it draws, so the visuals look as good as the setup side works.

How it works

  1. Sound in. The app listens through the microphone, or, in Chrome on a computer, to the computer's own audio. The sound only drives the picture; the app never plays it back.
  2. Shaping. The signal goes through a sensitivity control, a five-band EQ and a noise gate, so room noise between songs doesn't set the picture off.
  3. Listening. Many times a second the app measures the sound: how loud it is, where the hits land, the bass, mids and highs, and the tempo.
  4. Layers. Each layer has its own frequency range. One layer can follow only the kick drum (20–95 Hz) while another follows the whole mix, so the parts of the picture move with different parts of the music.
  5. Drawing. Each layer draws one of 25 scenes, from bars, scopes and LED meters to tunnels, fireworks, a stained-glass ring, a flight over hills, an open sea and a spiral galaxy. Every scene runs on the graphics chip, and the layers blend into one picture with trails and glow.
  6. Saving. Colors, layers and settings save as presets, and presets line up into a show.

Under the hood: Expo and React Native, Skia (CanvasKit) for the drawing, the Web Audio API for the sound, served from GitHub Pages.

Tutorial


Nine steps, the first eight with a screenshot from the app running in Chrome. Tap a screenshot to see it larger.

9. Go full screen

Tap ⛶ for full screen. The app keeps the screen awake while it runs.

If the microphone is blocked: in Chrome, tap ⋮ → Site settings → Microphone → Allow, then tap the screen to try again.

Moving to another device? Export your presets to a backup file in SETTINGS and import it on the other device.

Open MopVisualizer →

Shader credits

Five scenes are adapted from shaders their authors shared on Shadertoy. MopVisualizer's versions are modified: they react to sound, take the layer's colors, and have new controls. The originals are the authors' work, and the credit is theirs.

Some scenes also use small, widely shared functions by Inigo Quilez (value noise, smooth minimum, 2D box distance; MIT), mercury's hg_sdf library (MIT), and ACES tone-mapping fits by Stephen Hill (via MJP's BakingLab, MIT) and Krzysztof Narkowicz (CC0 or MIT).

Shadertoy is at shadertoy.com. MopVisualizer is not affiliated with Shadertoy or with any author named here.

The full MIT License notices for afl_ext's ocean shader, MJP's BakingLab, mercury's hg_sdf and Inigo Quilez's functions are published with the app: read the license notices.