Skip to content

fix(core): layout_gt export when barlines disagree with measures - #100

Merged
loootte merged 1 commit into
mainfrom
fix/layout-gt-messy-barlines
Aug 1, 2026
Merged

loootte merged 1 commit into
mainfrom
fix/layout-gt-messy-barlines

Conversation

@loootte

@loootte loootte commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Real .enpu.json projects can have detector barlines whose count does not match L3 measure boxes, failing validation (n_measures != n_splits+1).

  • Choose interiors from barlines only when count matches; else use measure-box boundaries
  • Always re-derive measures from final splits
  • Covers export of 989你的爱不离不弃

Fixes export used by train/scripts/export_from_enpu_project.py

Prefer measure-derived interior splits on messy detector barlines, and
always re-derive measures from final splits so n_m == n_s+1 validates.
@loootte
loootte merged commit 6ac9ab5 into main Aug 1, 2026
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