Skip to content

An example of how to run OpenSheetMusicDisplay inside a WKWebView to display a MusicXML score

Notifications You must be signed in to change notification settings

massimobio/OpenSheetMusicDisplay-Swift-Example

Repository files navigation

OpenSheetMusicDisplay-Swift-Example

An example of how to run OpenSheetMusicDisplay inside a WKWebView to display a MusicXML score

OpenSheetMusicDisplay is a JavaScript library that renders music notation of MusicXML files in the browser and it's built on top of VexFlow.

This is a demo implementation in Swift that works on iOS and macOS-Catalyst by running JavaScript in a WKWebView and uses OSMD version 0.8.7

OSMD doesn't yet support audio playback but you can add separate audio player and sync the cursor to music.

I haven't figured out how to transpose or export the charts as an image or PDF. Also I wonder if there is a more elegant way to deal with JavaScript, perhaps using JavaScriptCore?

If you know about any of the above or have other ideas, contributions are welcome.

App Image

About

An example of how to run OpenSheetMusicDisplay inside a WKWebView to display a MusicXML score

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published