Preserve mid-score headers + optional HOMR backend (#1, #6) - #7
Draft
thedivergentai wants to merge 3 commits into
Draft
thedivergentai wants to merge 3 commits into
thedivergentai wants to merge 3 commits into
Conversation
Stop forcing a single key/time/tempo across joined scores by default (issue #1 / MatNieuw jazz changes). Add segment-aware respelling and an opt-in --header-lock mode for simple-score OMR cleanup. Add an optional HOMR adapter (issue #6) via pdf2muse[homr], selectable with --model-backend homr, without making AGPL HOMR a hard dependency. Co-authored-by: Divergent AI <thedivergentai@users.noreply.github.com>
Expose the homr backend and key/time/tempo lock controls on single-score and batch conversion. Peak quality no longer overwrites an explicit backend. Harden the HOMR wrapper for PyPI 0.7.x (process_image returns None, no rocm_available, no title_detection field) and enable title OCR plus cache passthrough. Credit HOMR and homr_convert_wrapper.py in the README. Co-authored-by: Divergent AI <thedivergentai@users.noreply.github.com>
Swap the orange Inter chrome for Fraunces + Source Sans 3, ink navy surfaces, brass rules, and staff-line background. Visual-only; conversion controls are unchanged. Co-authored-by: Divergent AI <thedivergentai@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements issue #1 (preserve mid-score key/time/tempo) and issue #6 (optional HOMR backend).
GUI (follow-up)
Two extra commits on this PR:
model_backend/header_lock_mode. Peak quality no longer overwrites an explicithomrselection.HOMR completeness
Live-tested against PyPI
homr0.7.0 (API differs from current GitHubmain):process_imagereturnsNone(writes beside the image) — wrapper prints the expected pathProcessingConfighas notitle_detection/ norocm_available— kwargs are filtered--save-cachemaps to HOMR cacheImperfect example: Mutopia Bach WTC I Prelude 1, page 1, rotated ~2.4°, contrast drop, JPEG 38, speckle. Wrapper and
HomrAdapter.recognize_pageboth produced valid MusicXML (18 measures, ~380–397 notes; HOMR merged to 1 part on this dirty scan — expected, not a join bug).Credits
README Acknowledgements + UI footer credit liebharc/homr and
scripts/homr_convert_wrapper.py.Usage