Skip to content

Map phrase speed to quantized activity variants - #29

Merged
datashaman merged 1 commit into
mainfrom
agent/issue-27-speed-activity
Aug 15, 2026
Merged

datashaman merged 1 commit into
mainfrom
agent/issue-27-speed-activity

Conversation

@datashaman

Copy link
Copy Markdown
Owner

Closes #27.

What changed

  • map native phrase velocity to sparse, normal, and active authored variants through a deterministic 250 ms speed filter and hysteresis
  • quantize stable speed-band changes to the next eligible bar while suspending observation during Freeze Motion and direct dragging
  • give explicit collisions priority over speed intents targeting the same phrase and boundary, without retrying suppressed crossings later
  • publish raw/smoothed speed, stable/pending activity bands, and transition diagnostics through the native/UI bridge
  • show compact S/N/A state on phrases and exact speed diagnostics in the status panel
  • document the thresholds, mapping, suspension behavior, and arbitration policy

Impact

Phrase motion now shapes the music directly: slow phrases select sparse variant C, ordinary motion selects variant A, and fast phrases select active variant B. Changes stay musically aligned to bar boundaries, and freezing/repositioning motion does not interrupt MIDI playback.

Verification

  • UI unit tests: 14/14 passed
  • Debug build and CTest: 2/2 passed
  • Release build and CTest: 2/2 passed
  • deterministic ten-minute stress test passed with zero late MIDI events, zero timestamp error, and paired notes
  • stress exercised 100 speed-band changes, 51 queued speed intents, 14 collision-priority suppressions, and 30 applied speed transitions

@datashaman
datashaman marked this pull request as ready for review August 15, 2026 07:59
@datashaman
datashaman merged commit e99961d 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.

Map phrase speed to quantized activity variants

1 participant