The brief
AI video usually looks like random clips laid over a song. I wanted the music to be the director: calm sections that breathe, drops that hit, and loops that repeat exactly on the beat.
Watch it listen
Forty seconds of one of my own tracks, Haven Morning, played into a 3D scene that AMBR's analysis drives frame by frame. The bass on each beat lights the rings and sends a ripple across the water, the treble lifts the motes, and each section AMBR detects changes the light and the camera.
The strip along the bottom is AMBR's read of the track: 138 beats at 78 BPM and five sections across two minutes. The AI video layer that sits on top of this is still in development; this is the listening underneath it.
What it makes
Concept loops generated from a track's mood and tempo. Each one is a starting point an artist can approve before the final piece is made.
How it works
Listening is plain Python: librosa reads the track's tempo, every beat, the sections and the energy curve, and writes them to one data file that every later stage reads. Nothing downstream guesses at the music; it all works from that file.
The hard parts
Timing. A video model makes clips of whatever length its frame limits allow, but music changes on the beat. I flipped the problem round: the beat grid is the master clock, each clip's length is worked out backwards from where its cuts must fall, sized to fit the model's frame constraints, then trimmed on the beat in assembly. Transitions land on the music, not wherever a clip happens to end.
Continuity. Independent clips look like a slideshow of good shots. Each new clip is conditioned on the end of the one before it, so motion and form carry across the cut. The look only changes on purpose, at the section boundaries the analysis found, which is where a listener expects a change.
Scale without babysitting. A three-minute track is dozens of clips. Generation runs through the ComfyUI API rather than the UI: a batch script builds each section's jobs from its prompt and config and queues them, so a whole song is queued in one go instead of clip by clip by hand.
Memory. A 22-billion-parameter video model on a 12 GB consumer GPU is the main engineering constraint, and it shapes the whole design: short clips, tiled decoding, and one job on the card at a time. Running locally keeps iteration fast and free, which matters more to the work than raw speed.
Decisions and trade-offs
- Analysis drives the AI, not the other way round: every visual change has a reason at that moment in the song.
- Runs on a 12 GB consumer GPU instead of rented cloud time, so iteration stays fast and free.
- Continuity over variety: one coherent piece beats a collection of good shots.
- The same listening data also drives this site: the sculpture at the top and the Haven's windows move to the music.
From engine to product
Overtone is the first product built on AMBR: canvas loops for independent musicians.
