NoteLens

agent
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in .github/workflows/build-macos-release.yml
  • rm -rf — Recursive force deletion command in .github/workflows/patch-macos-release.yml
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Open-source desktop OMR workbench turning sheet music PDFs & images (up to 64-page orchestral full scores) into editable MusicXML 4.0 & MIDI (.mid) with full slurs, dynamics, lyrics, and 5-language term normalization.

README.md
NoteLens Icon

NoteLens

Open-source desktop OMR workbench that turns sheet music PDFs & images — up to 64-page 21-staff orchestral full scores — into editable, playable MusicXML 4.0 & Standard MIDI (.mid).

English · 简体中文 · 日本語

License: AGPL v3
Release v1.0.2
Output: MusicXML 4.0 & MIDI
UI Languages: 10

NoteLens Sibelius Symphony No. 5 64-page Full Orchestral Score to MusicXML 4.0

Why NoteLens

Standard optical music recognition tools often scramble notes on dense orchestral scores, multi-voice solo violin, skewed vintage scans, or rock band TAB books — and routinely drop slurs, dynamics, articulations, lyrics, and foreign expression terms.

NoteLens combines a local deterministic geometry engine with strong multimodal vision models (via your own VLM API or desktop AI Agents):

  • Complete Musical Semantics: Preserves not only pitch and rhythm, but also slurs, dynamics, hairpins, articulations, lyrics, and music terminology.
  • 5-Language Term Auto-Normalization: Automatically converts Italian, German, French, English, and Russian expression & technique markings into standard universal notation terms recognized by MuseScore, Sibelius, Dorico, Cubase, and FL Studio.
  • Deterministic Structure & Multi-Format Export: Local code handles pixel-accurate staff tracking, transposing part detection, 3× barline corridor slicing, beat-conservation verification, and MusicXML 4.0 DTD checks — with built-in one-click export to MusicXML 4.0, MIDI (.mid), part packs, and offline .wav audio.

Representative Showcase Examples

The 8 scores below match our showcase video, all transcribed with NoteLens connected to Gemini 4 Neon (including the complete 64-page 1st movement of Sibelius Symphony No. 5 and the complete 13-page full piece of Ravel's Jeux d'eau). All generated .musicxml files are included in docs/examples/ for direct inspection in MuseScore, Dorico, Sibelius, Cubase, or FL Studio.

# Category Representative Score Key Highlights Verified Output Sample
1 Full-Movement Orchestral Score Jean Sibelius — Symphony No. 5, Mvt. 1 (Full 64 pages) 21 transposing orchestral parts, 12/8↔3/4 meter shifts, mid-movement 21-staff ff key change, continuous 16:53 full movement 536 / 536 bars · 21,050 notes · 9.92 MB single file .musicxml
2 Dense Modernist Orchestral Stravinsky — The Rite of Spring (1921, p.1–3) 22 transposing parts, bassoon tenor clef, 16 intersecting woodwind/string staves, French terms auto-normalized 858 / 858 part-bars · 0 DTD errors .musicxml
3 3-Staff Pipe Organ J.S. Bach — Toccata & Fugue, BWV 565 (p.1–2) Independent manuals + pedal staff, mordents, fermatas, mid-staff clef switches 44 / 44 part-bars · 811 notes · 0 DTD errors .musicxml
4 Solo Violin Polyphony H.W. Ernst — The Last Rose of Summer (p.2–3) Single-staff dual voices, left-hand pizzicato (+), harmonics & triple stops 44 bars · 662 notes · 131 slurs .musicxml
5 SATB Choir + Lyrics W.A. Mozart — Requiem: Dies Irae, K. 626 (p.13–14) 4-part choir + piano reduction, syllabic Latin lyrics with cross-line hyphens 95 / 95 part-bars · 860 notes · 5 parts .musicxml
6 Deskewed Vintage Scan P. de Sarasate — Zigeunerweisen, Op. 20 (p.1–2) Skewed vintage scan deskewed via CamScanner, solo violin cadenza + piano 64 / 64 part-bars · 886 notes · 81 slurs .musicxml
7 Progressive Rock Band TAB King Crimson — 21st Century Schizoid Man (p.1–3) Strips Japanese prose, 3-verse lyrics, Alto Sax, 6-line Guitar TAB, dual Bass TAB & Drums 6 tracks · 9 staves · 995 notes .musicxml
8 Dense Solo Piano (Full Piece) Maurice Ravel — Jeux d'eau (Complete 13 pages) E major rapid 32nd/64th-note arpeggios, 4/4↔2/4 meter shifts, 8va, frequent clef changes & French markings 88 / 88 bars · 4,313 notes · 472 slurs .musicxml

Note: The CamScanner scan-cleanup demo example (Chopin Ballade No. 1, p.1–2) is also preserved in docs/examples/02_chopin_ballade_no1_1836_p1-2.musicxml.

Click to expand / collapse all Before & After comparison plates

01 · Full-Movement Orchestral Score (64 Pages) — Jean Sibelius, Symphony No. 5, Mvt. 1

Sibelius Symphony No. 5 64-page comparison

02 · Dense Modernist Orchestral — Stravinsky, The Rite of Spring (1921)

Stravinsky Rite of Spring 1921 comparison

03 · 3-Staff Pipe Organ — J.S. Bach, Toccata & Fugue in D minor, BWV 565

Bach BWV 565 organ comparison

04 · Solo Violin Polyphony — H.W. Ernst, The Last Rose of Summer

Ernst Last Rose solo violin comparison

05 · SATB Choir + Latin Lyrics — W.A. Mozart, Requiem: Dies Irae, K. 626

Mozart Requiem Dies Irae comparison

06 · Deskewed Vintage Scan — P. de Sarasate, Zigeunerweisen, Op. 20

Sarasate Zigeunerweisen comparison

07 · Progressive Rock Band TAB — King Crimson, 21st Century Schizoid Man

King Crimson 21st Century Schizoid Man comparison

08 · Dense Solo Piano (Complete 13 Pages) — Maurice Ravel, Jeux d'eau

Ravel Jeux d'eau comparison

Desktop Workbench & Workflow

NoteLens Glacier Glass Desktop Workbench Home

  1. External Scan & Photo Cleanup (Optional) — Built-in CamScanner integration removes yellowing, bleed-through, perspective skew, and margin rulers from old scans or phone photos before recognition.
  2. Local Geometry Tracking & 3× Slicing — Deterministic computer vision maps every staff, transposing key (A, Bb, D, F), and barline across pages, cutting magnified local slices for multimodal reading.
  3. Flexible Model Connection (VLM API & Parallel Agents) — Connect any OpenAI-compatible, Gemini, Claude, or self-hosted multimodal API in Settings for one-click runs, or delegate local page slices to desktop AI Agents. When processing multi-page books, you can launch multiple Agents in parallel across pages according to your quota to multiply speed several-fold.
  4. Beat Conservation, 5-Language Term Normalization & DTD Validation — Every measure is verified for beat conservation, voice alignment, slur closure, IT/DE/FR/EN/RU term standardization, and strict MusicXML 4.0 DTD compliance.

Side-by-Side Proofreading, Optical Erase & One-Click MIDI Export (New in v1.0.2)

NoteLens Score Preview, Offline Playback, and One-Click MusicXML / MIDI Export

  • Three Live Views: switch between continuous Score View, Side-by-Side Original Scan Compare, and Optical Erase Overlay to inspect every measure against the original print.
  • Built-in Playback & Export: click anywhere on the engraved score for offline multi-track playback (WebMscore + MuseScore_General_HQ.sf3), circle regions for AI spot polish, or one-click export full score .musicxml, Standard MIDI (.mid), individual part ZIPs, and .wav audio.

Model Transparency & Measured Speed

  • Model used for showcase examples: All showcase scores above were transcribed with Gemini 4 Neon.
  • Software cost: NoteLens is open-source and free (AGPL-3.0); you only use your own model quota or API key.
  • Measured single-page serial speed:
    • Solo, chamber, vocal, and organ scores: ~7–11 minutes / page (2-page complete run ~14–23 minutes).
    • Dense 22-part orchestral full scores (The Rite of Spring, 67 slice units): ~14 minutes / page (3-page complete run ~43 minutes).
  • Multi-Agent parallel speedup: For full multi-page scores (such as 64-page symphonies or 13-page solo works), launch multiple Agents concurrently on different pages based on your quota to accelerate total turnaround by several times.
  • Model selection advice: Reading accuracy on dense multi-voice scores varies considerably across vision models. Choose models with strong multimodal visual precision for best results.

Quick Start

Runs on CPU-only computers (no NVIDIA GPU needed).

One-Click AI Agent Install Prompt (Cursor / Claude Code / Codex / Trae / Antigravity / OpenClaw)

Please install and launch the open-source desktop app NoteLens (https://github.com/2033672081-glitch/NoteLens):
1. On Windows: download the latest win64-portable.zip from https://github.com/2033672081-glitch/NoteLens/releases, extract it to a local folder (includes bundled Python, Copista weights, and offline SoundFont), create a desktop shortcut, and launch NoteLens.exe.
2. On macOS/Linux (or if portable download fails): git clone the repo and follow README.md to set up the virtual environment and start the app (use mirror https://hf-mirror.com if weight download is slow).
3. Tell me the installation path and how to launch it next time once running.

Windows Portable Build (Recommended — Ready to Run)

Download NoteLens-v1.0.2-win64-portable.zip from GitHub Releases, extract to any folder, and double-click NoteLens.exe to open the standalone desktop window.

The Windows portable build includes an embedded Python 3.12 runtime, Copista local anchor weights, and the MuseScore_General_HQ.sf3 offline SoundFont — no Python installation needed.

macOS / Linux (From Source, Python 3.11+)

git clone https://github.com/2033672081-glitch/NoteLens.git
cd NoteLens
chmod +x start.sh
./start.sh

Windows (From Source, Python 3.11+)

git clone https://github.com/2033672081-glitch/NoteLens.git
cd NoteLens
python -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt
$env:PYTHONUTF8 = "1"
$env:PYTHONPATH = "$PWD;$PWD\vendor\copisteria\src"
.\.venv\Scripts\python -X utf8 -m uvicorn app.server:app --host 127.0.0.1 --port 8000

Open http://127.0.0.1:8000 in your browser.

Optional Configuration

  • Local anchor weights (Copista-28m / Copista-2m): already bundled in the portable releases; when running from source, download in the Settings drawer (supports custom mirrors such as https://hf-mirror.com).
  • Offline HQ SoundFont: already bundled in the portable releases; for source runs, see app/static/soundfonts/README.md.
  • Custom output directory: defaults to ./outputs/. Override via environment variables or a gitignored .env.local file (NOTELENS_OUT_DIR, NOTELENS_ROSTER_OUT_ROOT, NOTELENS_HD_EXPORT_DIR).

Internationalization

UI labels and rendered Step 2 / Step 3 diagnostic overlays support 10 languages:

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Español · Русский · Italiano · العربية (RTL with LTR score isolation)

Exported MusicXML <part-name> fields always keep canonical English or original engraved instrument names so DAW / engraving sound maps remain intact.


Running Tests

PYTHONPATH=".:vendor/copisteria/src" python -m unittest discover -s tests -p "test_*.py"

License & Acknowledgments

Yorumlar (0)

Sonuc bulunamadi