Inspiration

Music apps in XR usually put you in front of virtual instruments. I wanted the opposite: keep you in your own room and let the things already around you (a cup, a phone, a lamp, your desk, your monitor) become the instruments. The project started as a hands-only experiment in which I ported generative SuperCollider stems to ChucK and played them with finger gestures. Then I asked myself: what if every one of those sound layers lived inside a real object, and you could hear it come from exactly where that object sits?

What it does

Objectra is a hands-only mixed reality music app for Meta Quest 3 / 3S and Meta Glasses.

  • Things you can play sparkle in passthrough: desk objects recognized by on-device object detection, plus room-scan furniture as a fallback.
  • Point, hold a pinch, pick a sound. A clock ring fills, the object's real outline appears, and a panel lets you choose Pad, Bass, Clicks, Bells, Heartbeat or Drone. The same hold selects an instrument you already made.
  • Every instrument plays from its object in true 3D spatial audio (HRTF). Turn your head and the music stays where it is.
  • Shape it with your hands:
    • Finger pinches toggle effects (chorus, phaser, echo, distortion, metal, demon).
    • Slide along the object to change the octave, and tap it four times to set its tempo.
    • Thumbs up / down set volume. Left-hand poses shape the whole mix: L-shape muffle, call me space, rock drive.
  • Move and link: carry an instrument's tag to another object, or drag a cable between two tags so one instrument's rhythm pumps the other.
  • Accessible UI: a guided tutorial and help pages, gesture icons on every control, larger menu and text options, high-contrast and colour-blind colour modes, voice-over, menu follow, and a hearing-safety notice before the music starts.

How I built it

  • Unity 6 (URP) with the Meta XR SDK: hand tracking, passthrough, the Mixed Reality Utility Kit (room scan), the Depth API and Meta XR Audio.
  • Object recognition: Meta's on-device object detection (passthrough camera). Detections are placed in the room with the depth sensor, with room-scan furniture and depth measurement as the fallback.
  • Audio: ChucK (via Chunity) generates everything in real time. That covers four instrument slots, each with its own effects chain, plus a shared reverb, master effects and a limiter.
  • Spatial audio pipeline: ChucK renders each instrument's dry signal to its own buffer. A tap copies it into ring buffers in sync with the audio thread, and an AudioSource on each object streams it through Meta XR Audio's HRTF. Visual note pulses are delayed by the measured latency so sight and sound line up.
  • UI: world-space panels built in code, with TextMeshPro for sharp text, rounded gradient styling, and gesture icons that teach the hand controls.

Challenges I ran into

  • Constantly re-reading objects. My first version tracked objects continuously, so the outlines kept changing shape and jumping around. It felt unstable and confusing. I changed the design to treat recognized objects as placeholders: an object is measured once when you choose it, its outline stays put, and you move a sound by carrying its tag.
  • Buffer overloads through Chunity. The Quest runs an older ChucK (1.5.1.1). Too many parameter messages overloaded its global message queue and crashed the audio, so I moved note feedback to text output and limited updates to a few per second. Feeding ChucK audio into per-object spatial sources also needed my own ring buffers, with overflow and underrun handling and a latency cap.
  • Silent instruments only on device. A low-pass filter parked at 20 kHz was fine in the Editor at 48 kHz but unstable at the headset's audio rate, which silenced everything. Now the filter is bypassed when off, and every cutoff is clamped below the sample-rate limit.
  • Legible UI in XR. Bitmap text shimmered and blurred, and the virtual hands covered the panels. I switched to signed-distance-field text, smoothed every floating label, and set a clear draw order: hands over panels, gesture rings over hands.
  • Gestures that don't fight each other. An L-shape looks a lot like pointing, so poses need deliberate holds, effects act only on a locked instrument, and every important action uses a visible hold ring.

Accomplishments that I'm proud of

  • Sound that truly comes from real objects in your room, generated live rather than played from samples.
  • A full instrument you can play with bare hands only: pinches, slides, taps and poses, each with visual feedback.
  • Graceful fallbacks: recognised objects first, then room-scan furniture, then depth, so it still works without camera access.
  • An approachable, accessible flow: sparkles show what's playable, a chooser explains each sound, every control shows its gesture, and there are accessibility settings and a hearing-safety notice.

What I learned

  • In mixed reality, stability beats precision. Objects as calm placeholders felt far better than outlines that chased every detection.
  • Feedback is everything: hold rings, labels and outlines make gestures feel reliable.
  • Audio DSP that's stable on a desktop can behave differently on mobile hardware, so test the edge cases on device.
  • Generative, free-flowing music suits spatial audio. Layers that breathe on their own time make a room feel alive.

What's next for Objectra

  • A tool for interactive sound design and royalty-free music creation: record what you play in your room and export it for Reels, short videos, podcasts and games.
  • Recording and looping, to capture a performance and layer on top of it.
  • Instruments that can follow objects on request, now that the placeholder flow is solid.
  • Multiplayer jamming in a shared space, with each person playing their own objects.
  • Meta's mixed reality glasses: bringing the same hands-first, see-through instrument to lighter devices.
  • More sounds and effects, finger-curl controls as continuous knobs, and a calm "ambient mode" for relaxation and focus.

Built With

Share this project:

Updates

Submission history