Inspiration

When you listen to an orchestra, you hear one sound. But it is dozens of people playing different parts, and most listeners never get to hear how those parts fit together. I wanted to make that something you can do with your hands: hold the music, pull it apart, and put each section of the orchestra where you want it. It is the way a conductor hears, made into a toy anyone can pick up in the first minute.

What it does

You sit at the conductor's place in a concert hall. Mozart's Symphony No. 40 floats in front of you as one glowing orb. Touch it and the house lights go down. Take it in both hands and pull, and it comes apart into seven sections, each a glass ball holding its instruments and playing from wherever you put it:

  • Move a section and its sound moves with it (spatial audio).
  • Hold one to your ear and the others fall away, so you hear it alone.
  • Bring two together and the whole symphony returns.
  • A listening guide names the passage that is playing, lights up the sections carrying it, and sets three listening challenges, ending in a finale.

A second piece, the love theme from Tchaikovsky's Romeo and Juliet, is included as a provisional addition with its own guide and challenges. Everything works with hand tracking alone, seated, within arm's reach, and with one hand if needed. It also plays with a mouse or touch in any browser.

How I built it

  • Meta Immersive Web SDK (WebXR on Three.js, with an entity-component-system) and TypeScript, built with Vite and hosted on GitHub Pages. No accounts or third-party services; it works offline once loaded.
  • Real recordings, separated by instrument. The music comes from The Spheres Dataset (Colibrì Ensemble, CC BY-SA 4.0), in which every instrument was recorded separately. A Python script folds the instrument lines into seven sections and cuts each piece as a seamless loop. The archive is 25 GB, so I wrote a small tool that reads only the part of each file I needed.
  • Web Audio. The seven stems start on one shared clock, so they stay sample-locked forever. Each has its own volume, HRTF panner and analyser. The listener follows your head every frame.
  • Visuals that follow the music. Each ball's glow follows its own section's loudness. The level is in decibels, $L = 20\log_{10}(\text{rms})$, mapped to a glow value $g = \operatorname{clamp}!\left(\frac{L + 48}{30},\,0,\,1\right)$, and a sudden rise above the recent average throws a spark for each note attack.
  • Everything 3D is made in code: the concert hall (its lighting baked into vertex colours twice, house lights and concert spotlights, blended on the GPU when the music starts), the instrument emblems, the glass orbs, light beams and dust. The whole hall is four draw calls.
  • The listening guide was timed by analysing each section's loudness through the recording, then written by hand.

Challenges

  • Licensing. Recordings of classical music are copyrighted even when the composition is not, so I first built a synthesiser that played a Bach fugue from note data. Finding a properly licensed recording with every instrument recorded separately changed the project, and the credits travel with it.
  • No headset. I could not get a Quest in time, so everything was developed and tested in Meta's Immersive Web Emulator with emulated hands, plus desktop and phone browsers. The build is honestly labelled as not yet tested on a device.
  • Hands are not controllers. IWSDK's grab only takes a pinch whose grasp point is inside the object, which is fiddly on a 9 cm ball, so each ball has a larger invisible grab volume. The two-hand pull-apart is custom code, because the built-in two-hand grab scales an object rather than stretching it.
  • Small bugs with big effects. A glow sprite that the pointer rays could hit froze the whole XR frame loop. On phones held upright, the sections flew out and immediately merged back, because the arc was wider than the screen; they now open in two rows.
  • Time. Built solo in a few days, so every feature had to earn its place.

What I learned

  • How much the WebXR and IWSDK stack can do in a browser: real spatial audio, hand tracking and a full scene, with no install.
  • That sample-accurate audio in the browser is very achievable if every stem shares one clock.
  • That a listening experience needs a guide. Pulling the music apart is delightful, but the challenges give you a reason to listen closely.
  • To check licences first: it decided the whole direction of the project.

What's next

Testing on a Quest and tuning by feel; mixed reality on Quest 3, with the orchestra placed around your own room; and more pieces, since any work recorded as separate parts can be pulled apart this way.## Inspiration

Built With

Share this project:

Updates

Submission history