Writing · Side project

The Hum: A David Lynch tribute you walk through, with the lights off

Two days, 23 messages, five scenes and one lamp signal that runs every light in the piece. What worked, what broke, and how I prompted.

There is one lamp in the corridor, and it buzzes. The buzz and the brightness are the same signal, worked out tens of thousands of times a second, so when the lamp stutters you hear it at the moment you see it. Everything else in The Hum was built on that.

A corridor in black and white. A lamp on a chain lights striped wallpaper below a hard line of shadow, two framed pictures and a strip of patterned carpet. Past the lamp it is dark, with a thin line of light under a door at the far end.
The corridor. Wear headphones.

01The idea

I started with one message:

Help me plan out a David Lynch tribute project which puts together the mood and atmosphere his films create but as a next level web technology project. I want to push the boundaries

Claude came back with a plan and one rule I kept to the end: grammar, not quotation. No Red Room, no zigzag floor, no characters, no stills, no music from the films. What it would borrow is how the films work:

It proposed five scenes and asked three questions. Did I have rooms to scan? Should the piece use your camera and microphone? All five scenes, or two first? My answer:

I don't have rooms to take scans of

Webcam and mic intrusions included

The latter

So the rooms would be built in code, the camera would be in, and we would start with the corridor and a room with a television.

02Check first

Same rule as the last few projects: prove the thing it all rests on before building around it. Here that was one question. With headphones on and the lights off, is one lamp and one hum unsettling? If not, the plan said stop.

Claude built the lamp, the hum and a bare corridor, and three looks to choose from.

The corridor lit by a green fluorescent tube, with lino on the floor.A · Tube
The corridor lit warm orange by a shaded bulb, with striped wallpaper and a red patterned carpet.B · Tungsten
The same corridor in hard black and white, with heavy grain.C · Silver
The three directions, as they looked on day one. All three are still in the code.

It also told me what it could not check. It runs on a machine with no speakers, so it had measured the sound and never heard it. That part was mine. My reply was three words:

go
C
push

03One signal

The lamp's power is a number between nought and one, made inside the audio engine. It does two jobs. It sets how loud the buzz is, and it is sent to the page to set how bright the lamp is. The page holds the light back by the few milliseconds the sound takes to reach your ears, so they land together.

The lamp stutters, and sometimes goes out for a few seconds. When it does, the only light left is a thin line under the far door.

An almost black frame. A thin bright line of light under a door, and a faint glow on the carpet in front of it.
Lamp out. Something is on, behind that door.

All the sound is made in the browser: a 50 Hz mains hum (British mains), the lamp's buzz placed in the room so it passes overhead as you walk, a low drone, air, footsteps. There are no audio files.

Flicker can hurt people, so there are limits. The lamp never dips more than about twice a second, the front door warns you, and a tick box makes every dip shallow and slow.

04It changes when you're not looking

You walk by clicking. Each click takes you to the next mark, slowly. You can't roam, because these are composed frames and not a shooter.

Things move only behind you. Walk to the far door and it is shut. Walk back and the corridor is longer than it was. Turn round and the far door has followed you.

The first version of this was too clever. To get the door to open you had to walk the whole corridor, turn, walk it back, turn again and walk in a second time, with nothing to tell you so. I walked it and sent this:

how do i open the door

That one was a design fault, and Claude said so. The fix: two marks after you find the door shut, you hear its latch behind you. The next click turns you round. The door is right there, the lamp goes out, and one more click opens it. Nine clicks from the front door to the room, and every step works on a phone.

The rule goes for the browser as well. Look at another tab for four seconds, and when you come back a door has moved.

05The room with the television

An old television with two dials, seen from an armchair. Its screen shows a grainy view of the same room from a high corner: the armchair, the lamp and the television itself.
The view from the armchair. On the screen: the room, filmed from a corner where there is no camera. The armchair you are sitting in is empty.

The television is the room's own picture, drawn twelve times a second from up by the ceiling. You are not in it.

If you tick "Let the room see and hear you" at the front door, two more things happen. The screen cuts to your face, about three seconds late, and now and then it holds still when you don't. And the last thing you said out loud comes back once, backwards, from behind the door.

The camera and microphone are off unless you ask for them. The pictures and the sound stay in memory in your browser tab. Nothing is recorded, saved or sent anywhere, and the piece works the same without them, minus the double and the voice.

While you watch, the door shuts behind you. You hear that much. On the television it is still open.

06Build it all

With two rooms working I asked about the other three scenes. Claude ranked them, said the diner was the one to leave until last, and asked which to build.

build it all

A night road seen over a car bonnet. Headlights light a pool of tarmac, a white edge line and a telegraph pole. Everything else is black.The Road
A dark hall. A spotlight falls on a curtain and a microphone stand. On the curtain is the shadow of a person standing beside the microphone. Nobody is there.The Stage
The way in, and what is behind the door that only opens late.
A bright, empty diner in pastel green and cream. A counter with red stools on the left, tables and chairs by sunny windows on the right, a clock on the far wall.Walking in
The same diner seen from the far end, looking back at the door. Every chair has turned to face the camera, and a cup has appeared on each table.Turning round
The diner is the only place with colour in it. That was Claude's call, not mine. I picked black and white, and it argued that cheerful and wrong needs colour.

07Texture and light

At this point everything was a flat colour and every object was a box. It held up in the dark and nowhere else. I asked:

how do we add much more realism to every scene?

Claude listed five things in order of what they would buy, and warned that more realism is not the same as more Lynch. Half-real furniture reads as a video game. So I narrowed it:

It can still be dark and moody but less hard edges and more realism because of texture and light

That took three passes.

The baking is the part I'd point a developer at. The usual way is a separate 3D program. Claude had the browser measure it instead: at each point it looks along six directions and adds up the light arriving, once for each lamp. Because each lamp is kept apart, its bounce still follows the lamp signal. The bounce flickers with the lamp.

The last pass ran overnight:

Yes go ahead
I am going to sleep to please finish it for me

In the morning there was furniture, the rooms had been baked again around it, and there was a list of the decisions it had made without me. One was painting a real maker's name off the front of the television.

The television room built from flat boxes: a plain lamp, a box for a television, a block for an armchair. The walls are nearly black.Before
The same room with striped wallpaper lit softly by a glowing lampshade, a real television on a side table, a patterned carpet and an upholstered armchair.After
The television room, before and after. Same lamp, same signal.
2days, first message to live on my site
23messages from me
5scenes, one lamp signal
0lines of code I typed

08What went wrong

What happenedWhat it took
I couldn't find how to open the doorA sound behind you, and a click that turns you round. Every step now works by clicking alone
On a phone held sideways, the "Come in" button was pushed off the screenClaude's own walkthrough test couldn't click it. The front door now scrolls
The television showed the room upside downOne flipped number, found by looking at the picture
The real bounce light was too dim to seeThe rooms are dark and dark things don't bounce much. Claude let the lampshade pass light, as cloth does, and turned the bounce up. It told me it had
The baked diner came out whiteThe windows had been counted as far too bright. Fixed and baked again
The new lamp's chain threw thick black shadows down the whole corridorThe chain casts none. An unseen cone the shape of the shade does that job
A bright speck appeared on the wallpaperWallpaper is not shiny. Now it isn't
Claude has never heard itIt measured the sound and said, every time, that it was unheard. The listening was mine

One more thing it could not do. The machine it builds on has no real graphics card, so it only ever saw the older of the two ways the piece can draw itself. It said so in every report, which is the right thing to do with a gap you can't close.

09How I prompted

Every message I sent, in order. The first is the longest.

Help me plan out a David Lynch tribute project which puts together the mood and atmosphere his films create but as a next level web technology project. I want to push the boundaries

I don't have rooms to take scans of

Webcam and mic intrusions included

The latter

The new repo the-hum is created

Proceed with the title

go
C
push

merge to main

2. fiine
3. 1 not yet

1/ yes

2. done

how do i open the door

what's the URL?

what was left to pick up?

what about the other scenes?

build it all

summarise the project?

go ahead

push to main

how do we add much more realism to every scene?

It can still be dark and moody but less hard edges and more realism because of texture and light

merge

bake the lighting

Yes go ahead
I am going to sleep to please finish it for me

Let's fix 3

Merged

Fix up what it has left out

That is all 23. The fifth also carried a web address, and once I picked an answer from a list. The last one is this page. What I'd take from it:

Put your headphones on and turn the lights off.

Come in ↗

Built with Claude Code and three.js. Textures and furniture models from Poly Haven, all CC0. Every sound is made in the browser. A tribute to the mood of David Lynch's films: nothing from the films is used, no characters, sets, stills or music. Not affiliated with David Lynch or his estate.