Inspiration We come from musical and XR backgrounds and wanted something warmer than a gamified flashcard app: a piano lesson that treats the room itself as an instrument. Inspired by projects like Inkphony (write music on surfaces, scrub to erase) and IMMERROCK (lessons that adapt and celebrate progress), we asked — what if a beginner could learn a song on real keys, then compose their own melody by writing notes in the air?

What it does Pianoly is a hand-tracked VR piano studio in the browser. You place your fingers on a virtual piano and press — every key plays a synthesized tone and physically depresses under your finger. A guided lesson teaches "Mary Had a Little Lamb" key-by-key. A floating manuscript staff lets you compose: tap a cell to write a note (with sharps), swipe to erase, and hit Play to hear your melody performed back on the piano with a metronome and key highlights. Pinching objects in the room — the lamp, the window, the rug — unlocks alternate instrument timbres. Your composition autosaves to localStorage.

How we built it Built with Meta's Immersive Web SDK (IWSDK) on WebXR — no app install, runs in a browser on Quest or the IWER emulator. ECS entities per key with PokeInteractable + RayInteractable so a finger tap or a controller ray both register; Web Audio multi-oscillator synth voices (piano, bell, glass, drum); a UIKitML lesson panel; and a 104-cell poke grid for the staff with per-note entities for erase-on-contact. The room, piano and staff are all procedural Three.js — no asset downloads needed.

Challenges we ran into The invisible fall: IWSDK's locomotion feature silently drops the player through a scene with no LocomotionEnvironment floor — the whole app rendered as blank dome with zero errors. Fixed by disabling locomotion for a standing app. The lower field of view: at XR spawn, anything below ~45° under the horizon is invisible — our first piano placement was literally out of sight. We now treat the reachable volume in front of the player as the only real estate. Interaction granularity: an imported piano model gives you one mesh; we needed 25 independently pressable entities, so the piano is procedural by necessity, not preference. Accomplishments that we're proud of Real finger-press keys with physical travel and synthesized sound — no controllers required A two-mode learning loop borrowed from the best of IMMERROCK: Wait mode (pauses for you) and Song Tempo (beat clock, 1–3 star rating), plus a particle celebration and auto-restart Write-on staff composition that actually plays back through the real piano keys — including accidentals Environment-as-instrument: pinch the room to change what the piano sounds like What we learned The hard part of spatial music apps isn't the audio — it's keeping everything inside the narrow cone a headset actually shows you at spawn. Hand tracking also changes interaction economics: tap-to-write and scrub-to-erase are one-line gestures for users but demanded entity-per-cell and entity-per-note architecture to make every pixel of the staff individually touchable.

What's next for Pianoly Lesson library — a picker with difficulty ramp (Twinkle Twinkle, Ode to Joy), then a proper piano model via glTF Multi-instrument composition — separate timbre tracks per note row ("bass with a drum, melody with a bell") Shared studio — multiplayer room so a teacher's hands can point at the same keys; exportable song files to share compositions Song Mastery mode — the third IMMERROCK exercise type: full-speed runs graded on accuracy streaks

Built With

Share this project:

Updates

Submission history