Skip to content

Fix false MIDI clock loss with Visona Sync - #57

Merged
stephanterning merged 1 commit into
mainfrom
codex/fix-midi-clock-loss-with-sync
Oct 25, 2026
Merged

stephanterning merged 1 commit into
mainfrom
codex/fix-midi-clock-loss-with-sync

Conversation

@stephanterning

Copy link
Copy Markdown
Owner

A negative sync alignment exceeding half a second made fresh MIDI Clock pulses appear stale, causing MIDI CLOCK LOST to flicker even with a stable input. Positive offsets could also delay detection of a real outage.

Track clock activity using unshifted event times and apply alignment only to the musical timeline. Preserve the half-second timeout for Start, Continue and genuine clock outages, without letting an ignored Continue extend it.

Validation:

  • All 278 core-clang tests pass, including regression coverage for positive and negative offsets, recovery, genuine clock loss and sidechain alignment at −0.75 seconds.
  • ARM64 Linux app built and installed on the Raspberry Pi; the maintainer confirmed that enabling Visona Sync no longer causes flicker.
  • Static website builds successfully; git diff --check passes.

Website/manual review: updated the app sync manual to explain that alignment does not affect MIDI Clock loss detection. The presentation page needs no change because this restores existing behavior rather than adding a feature.

@stephanterning
stephanterning merged commit 1f80c0c into main Oct 25, 2026
5 checks 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.

1 participant