
Halbestunde
Scan sheet music from a photo or PDF, then hear it played on the instrument you pick, slow it down and practice along.
SponsorPracticeLearningTools
Open source · MusicXML · TypeScript
OpenSheetMusicDisplay (OSMD) renders MusicXML in the browser and in Node.js. It's free under BSD-3, built on VexFlow, and we have maintained it in Vienna since 2016. The score on this page is OSMD, running live: zoom it and turn it into Braille for free, or press Play to hear OSMD Extended, the build our sponsors get.
Loading OSMD…
Music Braille, generated from the same file
Playback is OSMD Extended, a sponsor feature. What sponsors get
Get started
Install from npm, point OSMD at a container and a MusicXML file, render. It works with React, Vue, Angular, Svelte or no framework at all, and it ships its own TypeScript types.
npm install opensheetmusicdisplayimport { OpenSheetMusicDisplay } from 'opensheetmusicdisplay';
const osmd = new OpenSheetMusicDisplay('score', {
autoResize: true,
backend: 'svg',
});
await osmd.load('my-score.musicxml');
osmd.render();Free and open source
Everything in this list is in the npm package, under BSD-3. Each card links to a place where you can see it working today.
Load .musicxml or compressed .mxl and get SVG that reflows to the width it has. In the browser, or headless in Node.js for previews and print.
Turn the same file into Music Braille for blind and visually impaired readers. Public OSMD has done it since version 2.1.1.
Transpose by semitones, or by interval so the spelling follows the new key: down a whole step, an A♯ in C major becomes a G♯, not an A♭.
Ped. signs, pedal lines and both together, continued across system breaks and kept clear of beams below the staff.
Trill lines that start at the main note, not at a grace note before it, and run on across system breaks.
Step through the score note by note, and color notes, stems and noteheads from your code or from the file.
For sponsors
OSMD is free because companies and developers sponsor it. Sponsors get OSMD Extended, our build with the features below, and support from the people who write the code. Companies can take a company license, billed yearly, with an invoice.
Play, pause, tempo, metronome, loops and a mixer with a volume for each part, with the cursor following the music. Press Play above to hear it.
Save a score as WAV or MP3, rendered in the browser with the same sounds the player uses.
Numbered notation for readers in China and across Asia, in its own build of OSMD Extended.
Comments and symbols on the score, in layers you save and load as files. Each one stays on its beat when the layout changes.
OSMD in React Native, iOS (Swift) and Android (Kotlin) apps.
Built with OSMD

Scan sheet music from a photo or PDF, then hear it played on the instrument you pick, slow it down and practice along.
SponsorPracticeLearningTools

A free songbook for Catholic choirs, in Portuguese, with lyrics, chords and playable sheet music for more than 700 songs.
SponsorPracticePublishing
A piano course built on sight reading, with new music at every level and feedback on every note you play on a MIDI keyboard.
LearningPractice
Built something with OSMD? Add it with a pull request: we review it, test it and send you suggestions before it goes live.
Custom development
We know where OSMD's limits are and how to move them. Companies hire us for custom features, integrations, performance work, mobile apps, playback, and practice feedback that checks what a musician plays against the score.
Community
Ask the team and other developers, share what you build, hear about releases first.
Report a score that renders wrong, read the code, send a pull request.
Add your project to the showcase, translate this site, or fix an issue.
How OSMD compares
Five open-source libraries draw sheet music in a browser, each built for a different job. Here is where they differ most; the full comparison links every cell to the project's own docs.
| Criterion | OSMD | VexFlow | Verovio | alphaTab | abcjs |
|---|---|---|---|---|---|
| Reads MusicXML | ✓MusicXML, MXL | × | ✓MusicXML, MEI, ABC | ✓MusicXML, Guitar Pro | ×ABC |
| Lays out a whole score from a file | ✓ | × | ✓ | ✓ | ✓ |
| Audio playback with a cursor | ◐OSMD Extended | × | ◐MIDI | ✓ | ✓ |
| Music Braille | ✓ | × | × | × | × |
| License | BSD-3-Clause | MIT | LGPL-3.0 | MPL-2.0 | MIT |