~/todd-fleeman/case-study — session log entry

~/Tether Comm

started 2026-09-28 · last touched 2026-10-05
Freddy Fenderbender
Freddy Fenderbender
Freddie's Interview

MISC Labs' newest invention: Betwixt's first phone. Well... a tin can and some string.

It only calls out, the reception is spotty, and you never know who'll pick up. A radio DJ? A real resident?

Only one way to find out.

why this exists

TetherComm is a call-in device from Betwixt, a children's character world. Press Connect and a random resident starts talking, with a live waveform drawn from the audio itself. Their picture glitches into view a few seconds in and glitches back out just before the call ends. Disconnect works like hanging up, not pausing. Callers come up in shuffled order with no repeats until everyone has had a turn. The clips are documents in Betwixt's Sanity, each with a release date, and this demo reads that same content directly. It's built in Next.js and TypeScript, with Web Audio and Canvas for the waveform and CSS keyframes for the glitch.

built on / learned
Canvas
Web Audio API
Learned
  • Shuffle once, then deal. Picking blind with Math.random() can repeat the same caller twice in a row. A Fisher–Yates shuffle builds a queue, and each Connect takes the next caller off it. When the queue runs out, it reshuffles.
  • The first caller is picked on the server. The server chooses who appears before anyone presses anything, and the first Connect plays that same person, so the screen and the sound always match.
  • Hang up, don't pause. Disconnect resets the playhead to zero as well as stopping the sound, so the next call starts fresh and the picture hides immediately.
  • Timing the glitch from the clip. The picture reveals at 3 seconds in and glitches out in the last 3 seconds. The glitch-out waits until the clip's length is known, so it can't fire before the audio has loaded.
  • Glitch without breaking the layout. The keyframes jitter with the standalone translate property and slice with clip-path, so they don't touch the transform the image already uses for centering. The same animation works on the image and the text.
  • One audio source per element. Web Audio allows only one source node per audio element, ever. Keeping the audio context and source in refs means React's double-run of effects in development doesn't try to make a second one.
  • The waveform reads real audio. An analyser node samples the loudness of each frequency every frame, and Canvas draws it as bars mirrored around a center line, brighter as they get louder.
where this might go

A shuffled call from a character is a small, repeatable surprise. Turn it into a collection and every caller you reach gets logged, so kids come back to fill in the set. Schedule the clips, and a character can call on their birthday or a holiday. Outside of Betwixt, the same pattern fits a museum where historical figures call you from the exhibit, a language app where a native speaker rings with today's phrase, or a game where characters check in between levels.