Re: musicxml2ly unitialised variable
Raphael Mankin <[email protected]> Wed, 25 Sep 2024 16:50:46 +0100
| Newsgroups | gmane.comp.gnu.lilypond.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 25/09/2024 14:36, Werner LEMBERG wrote: > >> I am converting a PDF to XML with Musescore and then trying to >> import it into Lilypond. The original PDF is not the most >> marvellous, but this fails at the import stage with an "Unbound >> local variable" error. > > Your `score.xml` file is not a valid MusicXML file: It contains stuff > like > > ``` > <duration>4/4</duration> > ``` > > but the `<duration>` element only accepts decimal values (and integers > are preferred according to the MusicXML specification). > > It actually looks like this file is what MuseScore uses internally for > storing its data (it starts with a `<museScore>` tag). This doesn't > work with `musicxml2ly`; you have to explicitly *export* to MusicXML. > > Maybe you've attached the wrong file to the bug report? > > After some faffing around, I managed to get Musescore4 installed. It appears that Musescore4 will not correctly read the output of its own conversion: it complains about invalid data. In view of that, the import to Lilypond, although it works, for some value of "works", is not terribly useful. Thank you for your suggestions. Further research is required.