02 // Case study

Disc Deck

A tiny music app in two WebGL rooms: a CD player whose disc carries a diffraction rainbow, and a translucent cassette deck whose reels wind with the song, finished like a K-pop album. CD case adapted from Ann Nguyen's open-source cd-case.

Role
Design & front-end
Year
2026
Stack
Three.js · WebGL · Web Audio · TypeScript
Disc Deck

01 //

The brief

A music player that feels like holding a physical album: a CD you can watch spin up and a cassette whose reels actually wind, finished like a K-pop release with white gloss, chrome type and foil.

02 //

Approach

Two rooms, one player. Library, now playing, queue, shuffle, repeat, seek and volume are shared; press 1 or 2 to walk between the CD player and the cassette deck.

The cassette started as an image, not a mesh: a straight-on, generated cassette front with a Y2K label. Its window is cut out at load and real reels turn behind it, with window and reel positions measured for each image.

03 //

Craft details

  • Diffraction on the disc

    The disc carries a real diffraction rainbow, and the jewel case turns as its lid swings open. Changing albums closes the case, swaps the disc and opens it again.

  • Holo shell

    The pink shell's holographic wash runs pink → violet → blue as it turns, and the label prints on the front only.

  • Reels that obey the tape

    Tape winds left to right as the song plays, and the emptier reel spins faster, the way a real cassette does.

  • No recorded music shipped

    Demo tracks are synthesised at load with an OfflineAudioContext, so the repo ships no audio files. Drop your own files anywhere to press your own mix.

  • Beat-synced finish

    An AnalyserNode splits playback into four bands that drive the EQ bars and the glow.

  • Credit

    The CD case (geometry, shaders and its open/close motion) is Ann Nguyen's open-source cd-case, adapted here with a close → swap → reopen disc change and a configurable dock offset.

04 //

Result

Live on GitHub Pages with keyboard controls (Space, ← →, 1 / 2). Everything outside the CD case (the cassette, the player, the art painters and the UI) was written for this project.