Inspiration

Whenever I listen to music, my hands start playing. I drum on my desk, play an invisible keyboard on my lap, and act like I'm in a band. Almost everyone does some version of this. I wanted to turn that habit into something real: put on a headset, start a song, and actually play along, with no controllers and no musical training.

What it does

Jam Along puts a glowing keyboard on your lap and a virtual band on stage in front of you. Press play, tap the keys with your fingertips, and your notes join the song. The trick is that the keyboard is locked to the song's key, so every note you hit sounds good. A first-timer feels like a musician within a minute.

  • Two instruments: a pentatonic keyboard (Keys, Synth or Bells sound) and six drum pads (hi-hat, snare, kick, clap, tom, crash) with Studio and 808 kits. In drums mode, the band's drummer steps back and copies your hits.
  • A live band: a drummer, bassist and guitarist play in time, spotlights pulse on the kick, and an LED wall reacts to the actual sound.
  • Bring your own music: import an MP3 or WAV and Jam Along detects its tempo, beat and key on the device, then tunes the keyboard and syncs the band to it.
  • Hands-first and seated: everything works by poking or pinching, all within arm's reach, and you can have a full jam in a few minutes.

How I built it

I built Jam Along with the Immersive Web SDK (WebXR), Three.js and the Web Audio API, all in TypeScript. The backing tracks are generated live in code, so the app knows every beat and chord and the visuals react in perfect sync. Fingertip pokes are detected in each key's local space, and how fast you hit sets the volume. For imported songs, I wrote a beat and key detector that runs in a Web Worker: onset detection and a comb search lock the tempo and first beat, and a chromagram matched against key profiles finds the key.

Challenges I ran into

I don't own a headset, so I developed and tested everything in the IWSDK emulator. That meant designing controls that work both by fingertip and by pinch-and-point. Getting the beat grid of an imported song to stay locked for its whole length took several iterations, as did fixing a consistent 25 ms timing offset in my onset detector.

Accomplishments that I'm proud of

  • The "every note fits" design: nobody plays a wrong note.
  • A detector that found the exact tempo, the right key and beats within 7 ms on my test songs, in about a second.
  • A full band, two instruments and song import, all running in a browser.

What I learned

I learned how to build hands-first interfaces where nothing needs explaining, how a little music theory (pentatonic scales) removes the fear of playing, and how to keep audio and visuals in sync to the millisecond.

What's next for Jam Along

Guitar strumming and more instruments, tap-to-correct tempo for tricky songs, recording and sharing your jams, and multiplayer so friends can join your band.

Built With

Share this project:

Updates

Submission history