Skip to content

Convert file xml to humdrum in commonjs #3638

Answered by craigsapp
IzerkT asked this question in Q&A
Discussion options

You must be logged in to vote

I have not used the npm version of verovio yet, so @lpugin or @WolfgangDrescher can clarify. Probably there are some missing interface functions to make the conversion from MusicXML to Humdrum possible.

I see getHumdrum in the npm interface code:

https://github.com/rism-digital/verovio/blob/develop/emscripten/npm/src/emscripten-proxy.js#L45-L46
https://github.com/rism-digital/verovio/blob/develop/emscripten/npm/src/verovio-toolkit.js#L66-L68

setOptions and loadData are there, so in theory it should work.

Maybe adding a function in that file called convertMusicXMLToHumdrum(data) would be good, which would import via musicxml-hum and export via getHumdrum.

musicxml-hum it is note listed in …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@IzerkT
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by IzerkT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants