Designed for the Music Encoding Initiative - Fast - Light - Flexible - No dependencies
Once included, and with jQuery, it is easy to load an MEI file and to render it on the fly:
All the options of the command-line version are supported, with the only difference that their name is in
camelCase instead of
dash-case. Only the
--all-pages option is not supported. The options are passed to the Verovio toolkit in JSON.
renderToMidihas been called previously.
string getMEI(page, scoreBased)
sectionelement will be output. Set scoreBased to 1 for standard score-based MEI and 0 for the internal page-based MEI.
loadData. Page numbering is 1-based.
renderToMidihas been called previously
renderPage. The data stays in memory until new data is loaded or until the toolkit instance is deleted.
string renderData(data, options)
renderPageand is appropriate for rendering small data snippets. The data does stay in memory once loaded. Also, up to version 0.9.12, the JSON object had to be stringified.
string renderPage(pageNumber, options)
ignoreLayout) cannot be modified when rendering a page and reloading the data if necessary for this. Also, up to version 0.9.12, the JSON object had to be stringified.