Skip to content

Make two proximity rhythm mappings auditionable - #32

Merged
datashaman merged 1 commit into
mainfrom
agent/issue-30-proximity-audition
Aug 15, 2026
Merged

datashaman merged 1 commit into
mainfrom
agent/issue-30-proximity-audition

Conversation

@datashaman

Copy link
Copy Markdown
Owner

Closes #30

What changed

  • add deterministic pairwise surface-gap proximity tracking with 250 ms smoothing and loose/linked/tight hysteresis
  • quantize stable coupling transitions and audition-mode changes to the next eligible unscheduled bar
  • add two temporary mappings: rhythm-profile onset snapping and exact shared-onset accents
  • apply proximity after collision/speed variant resolution so the controls remain orthogonal
  • expose relationship lines, exact pair state, current/pending mode, and transition diagnostics in the UI
  • document the experiment and add native, bridge, UI, and stress coverage

Why

Proximity was visible in Drift but did not yet affect the sound. This PR makes two intentionally constrained rhythm treatments directly comparable during uninterrupted playback without prematurely selecting a production mapping.

User impact

Moving phrases together now produces an audible, bar-quantized rhythmic relationship. The Proximity selector switches between the two candidates at the next bar, while Freeze Motion and dragging continue to observe proximity without stopping MIDI playback.

Validation

  • npm --prefix ui test -- --run — 14 tests passed
  • npm --prefix ui run build
  • cmake --preset debug && cmake --build --preset debug && ctest --preset debug --output-on-failure
  • cmake --preset release && cmake --build --preset release && ctest --preset release --output-on-failure
  • ten-minute deterministic native stress simulation passed with paired notes and zero late MIDI
  • git diff --check

@datashaman
datashaman marked this pull request as ready for review August 15, 2026 12:48
@datashaman
datashaman merged commit e72ce8f into main Aug 15, 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.

Make two proximity rhythm mappings auditionable

1 participant