Skip to content

Move and bounce phrases in the native world - #18

Merged
datashaman merged 1 commit into
mainfrom
agent/issue-13-native-world
Aug 10, 2026
Merged

datashaman merged 1 commit into
mainfrom
agent/issue-13-native-world

Conversation

@datashaman

Copy link
Copy Markdown
Owner

What changed

  • add a native-owned normalized spatial world with phrase position, velocity, radius, and mass
  • integrate phrase movement at a fixed 120 Hz with radius-aware boundary reflection and bounded catch-up
  • keep musical transport derived from the monotonic clock independently of physics backlog
  • publish sequenced latest-state world snapshots at 30 Hz with transport, phrase-body, catch-up, dropped-snapshot, and publication-timing data
  • render and interpolate the four phrases with PixiJS, including names, direction indicators, movement, and playback state
  • reject stale or malformed world snapshots in React
  • document the implemented world slice in the README

Impact

The four authored phrases now move and bounce continuously in the packaged app while their synchronized MIDI scheduling remains native-owned. The diagnostics panel makes physics and snapshot delivery behavior visible during stalls or overload.

Validation

  • ./scripts/verify.sh
  • Debug CTest: 2/2 passed
  • Release CTest: 2/2 passed
  • 10-minute deterministic stress simulation: 72,000 physics steps, 15,614 MIDI messages, zero late MIDI events, zero phase error, zero timestamp error, and zero catch-up caps
  • packaged JUCE application smoke-tested with PixiJS initialized and all four phrase positions visibly changing between captures

Closes #13

@datashaman
datashaman marked this pull request as ready for review August 10, 2026 08:53
@datashaman
datashaman merged commit 7833e6f into main Aug 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move and bounce phrases in the native world

1 participant