Many worlds. One person.TR
All field notes

How Claude built a singing roof

The song already existed when my 43-second Protein Roof Short for Talya Roofing was made. Beat-timed shingles and a revised mouth show what Claude contributed.

By Samed Guvenc5 min read / English

There is protein in coffee and protein in snacks. Why not in a roof? That absurd idea became the 43-second video I published on the Talya Roofing channel. A house sings, a package lands on its roof, and it grows muscles while “150 grams” appears on screen. Then the show stops to ask whether your roof actually needs protein. The answer is “No.”

The song already existed, which limits what I mean by “Claude made this.” Claude built the moving images around the recording. You can see that work in the beat that brings in a shingle, the moment the screen clears, and the way the house's mouth moves. Those decisions also show what could be revised after the first version.

The YouTube title is Everything Has Protein Now. Even Your Roof? The player below connects to YouTube only after you choose to load it.

TALYA ROOFING / PROTEIN ROOF

Everything Has Protein Now. Even Your Roof?

Timing the animation to an existing song

The starting file was an audio recording called “150 grams of Protein,” about 43 seconds long. I cannot credit Claude with composing the song or generating the vocal in this production. Analysis of the recording's words, beats and changes in energy provided the timing for the animation.

We needed to know when each word was sung. A raw transcript from faster-whisper, running locally, was kept separately from the corrected lyrics. The transcript misheard the brand name, which was then corrected to Talya Roofing. Even a perfectly timed caption needs the right word.

Librosa analyzed the tempo and beats, estimating about 129 BPM. That estimate alone could not tell us when to move something on the roof. The animation needed the exact beat locations, so the music could set the timing of scene changes as well as play behind them.

Bringing in shingles on the beat

The house starts under its own small raincloud, with shingles missing from its roof. A package arrives, the old covering scatters, and new shingles fly into place. In the source code, their arrivals are tied to snare hits. The protein counter climbs as the roof fills in with the music.

We see the song's exaggerated promise of strength play out piece by piece. The house goes from soaked by rain to flexing its muscles, which moves the story along without a long explanation.

At around 23 seconds, the chorus brings in a sunburst background, large lettering and the flexing house. A few seconds later, a parody supplement label gives way to a plain question card, then the single word “No.” on black.

Clearing the screen makes the answer stand out. At the same intensity as the earlier scenes, it might read as just another piece of text. The next line, “But it might need Talya Roofing,” connects the joke to the business. The timing lets the video build up the protein claim before puncturing it.

Revising the mouth and the framing

In the first production version, the front door moved like a mouth. In the published version, the door stays put and a separate cartoon mouth sits between it and the eyes. Claude could revise the character's construction and render the same scenes again with that change.

The house and surrounding objects were drawn in Python. Windows act as eyes, blinds as eyelids, and awnings as eyebrows. Pycairo draws the shapes; calculations over time control the character's position, scale and expression. The existing Talya logo sits within those drawings. The mouth is another moving part of the character, not a detail pasted onto the finished picture.

The new mouth uses word timings and approximate syllables. It closes for some sounds and opens or rounds for others. Vocal energy affects how far it opens too. This does not analyze speech perfectly: it uses rules built for the character to map spelling to mouth shapes. Between sung words, the house smiles or looks sad according to the scene.

Making room for the mouth made the house taller. In some scenes, it then had to be lowered or reduced in size to keep the roof clear of large lettering. Building the scenes in code made those revisions possible. The changed character’s relationship to everything around it still needed another look.

What remains available for another version

There are three opening versions. I published the one beginning with “Everything has protein now.” The others change the opening text and keep the main video the same. I have no comparative viewing results here, so those files do not tell us which opening performs better. They show that the opening can change without a redesign of the whole video.

FFmpeg combines the final frames with the source audio. The master is 1080 × 1920 at 30 frames per second. Word timings, scene drawings and character movements remain in separate sources, so a finished-looking detail can be changed and rendered again.

That is why I focus on the revisions when describing Claude's work here. The song kept its duration while the house's face changed and the framing was adjusted to fit. The saved source gives me somewhere to begin another revision.

The roof does not need protein. The joke needed a singing character and an answer that appeared at the right moment. Claude built and timed those images around an existing song, and left them in a form that could be revised when the character's face changed. That is what I mean by “made the video”.