r/Musescore • u/Vegetable-Fix-2054 • 6m ago
Discussion Got tired of OMR tools mangling slurs, dynamics, and multi-voice scores on old scans, so I open-sourced my own (tested on all 64 pages of Sibelius 5)
If you've ever tried importing a real PDF score into MuseScore, you probably know the routine: you run it through Audiveris, PhotoScore, or SmartScore, open the resulting MusicXML, and end up spending more time fixing broken rhythms, vanished slurs, missing dynamics, and scrambled transposing parts than it would have taken to just re-enter the score by hand.
Throwing a full sheet-music page straight at a general vision LLM sounds like an easy fix until you actually try it. Tiny accidentals and ledger lines blur together, multi-staff alignments drift, and raw model-generated XML constantly breaks measure beat counts or MusicXML DTD rules.
So I built NoteLens (free & open-source under AGPL-3.0), a desktop OMR workbench that outputs editable MusicXML 4.0 and Standard MIDI (.mid) ready to open in MuseScore Studio.
GitHub & portable builds (Windows x64 / Apple Silicon macOS): https://github.com/2033672081-glitch/NoteLens
How it avoids the usual OMR failure modes
- Optional scan cleanup (deskewing, yellowing and bleed-through removal) for skewed vintage scans or phone photos.
- Local deterministic CV geometry engine maps every staff, transposing key (
A,Bb,D,F), and barline across pages, then cuts 3x magnified local barline-corridor slices instead of guessing from a low-res full page. - Bring your own vision model or parallel Agents: slices go to your own multimodal API (Gemini, Claude, OpenAI-compatible, or self-hosted) or multiple desktop AI Agents running in parallel across pages.
- Deterministic verification before export: enforces beat conservation per measure, voice alignment, slur closure, 5-language expression term normalization (IT/DE/FR/EN/RU), and strict MusicXML 4.0 DTD checks.
- Built-in proofreading UI (powered by
WebMscore+MuseScore_General_HQ.sf3) with Score View, Side-by-Side Original Scan Compare, Optical Erase Overlay, offline playback, and one-click export to.musicxml,.mid, part ZIPs, and.wav.
Don't take my word for it — open the raw .musicxml files in MuseScore
All public-domain test outputs are in docs/examples/ so you can download and inspect them directly in MuseScore Studio: https://github.com/2033672081-glitch/NoteLens/tree/main/docs/examples
- Jean Sibelius — Symphony No. 5, Mvt. 1 (complete 64-page orchestral full score): 21 transposing parts, 536/536 bars, 21,050 notes (single 9.92 MB file)
- Igor Stravinsky — The Rite of Spring (1921, p.1–3): 22 transposing parts, 858/858 part-bars, 0 DTD errors
- Maurice Ravel — Jeux d'eau (complete 13 pages): 88/88 bars, 4,313 notes, 472 slurs
- P. de Sarasate — Zigeunerweisen, Op. 20 (deskewed vintage scan): 64/64 part-bars, 886 notes, 81 slurs
- Plus Bach BWV 565 (3-staff pipe organ), Ernst solo violin polyphony, and Mozart Requiem SATB choir with Latin lyrics.
Honest trade-offs up front
- CPU-only: runs without an NVIDIA GPU; portable zero-setup zips for Windows and Apple Silicon macOS are on the Releases page.
- BYOK: NoteLens itself is free and open-source; you supply your own model API key or agent quota.
- Not instant: serial recognition takes ~7–11 min/page on solo/chamber scores and ~14 min/page on dense 22-part orchestral full scores (running multiple agents concurrently across pages speeds up full books several-fold).
- Model-dependent: final reading precision still depends heavily on the visual accuracy of the vision model you connect.