rism-digital / verovio

🎵 Music notation engraving library for MEI with MusicXML and Humdrum support and various toolkits (JavaScript, Python)
https://www.verovio.org
GNU Lesser General Public License v3.0
687 stars 185 forks source link

importing musicxml to render the web example #2223

Closed ifredom closed 3 years ago

ifredom commented 3 years ago

Is there an example of importing musicxml to render the web? Only the import Mei file was found to render the web. I don't know the source code very much.

craigsapp commented 3 years ago

Loading MusicXML should be nearly identical to loading MEI. By default the input format will be automatically identified.

https://book.verovio.org/first-steps/basic-rendering.html

If you want to ensure MusicXML import, you can set the inputFrom option to xml:

let options = { "inputFrom": "xml" };
toolkit.renderData(data, options);