Continuo is a JS library to select notes on a rendered MEI music score and create permalinks using the Music Addressability URL scheme.
- Verovio must be available globally.
The built version will include
- jQuery
- Backbone
Import continuo directly into your JS app too avoid duplication. Or file an issue if your project needs a build without dependencies and we'll work on it. You'll need Gulp for building.
$ npm install continuo
$ gulp
(new Continuo({el: "#html_id", mei: '/URL/to/MEI'})).render();
// or
(new Continuo({el: "#html_id", meiString: '<mei><!-- MEI data --></mei>'})).render();
The object passed to the constructor allows various options:
- el: ID of the HTML element where the score shall be rendered; prepended by '#'
- mei: URL of the MEI file to be loaded
- meiString: The content of the MEI file as string
- verovioToolkit: A reference to the Verovio toolkit. In Verovio's tutorials, this is usually the variable vrvToolkit
- verovioOptions: Custom options for Verovio.
- omas: undocumented
- paginate: undocumented
- showPageCtrls: Decides whether page controls shall be rendered. boolean, default: true
Apache 2.0