BlocksXR · Rhythm & Spatial Interaction Case Study

BlocksXR Beat Sync & Rhythm Tabletop

How we synchronized 3D polyomino gravity, discrete inputs, and dual-hand OpenXR SnapDrag movement & rotation to a monotonic audio clock—adding 1/4, 1/2, and 1/1 Beat Grids, parabolic held-piece squash-and-stretch bounce, and a zero-GC tabletop FFT spectrum + 3D Metronome.

1/4 · 1/2 · 1/1 QUANTIZED BEAT GRIDS ±65 MS LATE-GRACE WINDOW ON 1/1 0 BYTES STEADY-STATE GC PER FRAME 128 PTS / 4096 FFT LOG-INTERPOLATED SPECTRUM
02 / Beat Grid Reference

Musical timing & architecture breakdown.

Preserves enum compatibility (Off = 3, QuantizeFullBeat = 4) across saved preferences and production defaults JSON.

Mode Subdivisions @ 60 BPM @ 120 BPM @ 150 BPM Grace Window Behavior
Tempo Smooth 0 (instant) 0 ms 0 ms 0 ms — Immediate input, BPM-scaled cubic ease-out, beat-synced gravity, held-piece bounce.
1/4 Beat Grid 4 / beat 250 ms 125 ms 100 ms 0 ms 16th-note quantization for keyboard, touch, and SnapDrag movement/rotation.
1/2 Beat Grid 2 / beat 500 ms 250 ms 200 ms ±35 ms 8th-note rhythmic snapping with 1:1 target ghost countdown and subtle haptic tick.
1/1 Beat Grid 1 / beat 1000 ms 500 ms 400 ms ±65 ms Strictly on the main beat — pieces move and rotate only on the kick drum.
MONOTONIC BEAT CLOCK

Multi-Pack BPM & Kick Phase-Lock

Auto-parses <N>bpm from clip and folder names, respects activePack.defaultBpm, and gently nudges beat phase toward live FFT kicks without ever stepping TotalBeats backwards.

BEAT-SYNCED GRAVITY

Musical Level Progression

ExternalGravityClockEnabled steps falling pieces strictly on beats: every 2 beats (Lv 1–2), 1 beat (Lv 3–6), 1/2 beat (Lv 7–10), and 1/4 beat (Lv 11+)—reverting cleanly if music stops.

XR HAPTIC METRONOME

Feel the Tempo in Your Hand

While grabbing a block in Meta Quest OpenXR, a feather-light haptic pulse fires on every integer beat so players feel the 1/1 rhythm directly in their hand alongside the visual bounce.

Concept Artwork

Open full-resolution image ↗