Re: musicxml2ly unitialised variable

Werner LEMBERG <[email protected]> Wed, 25 Sep 2024 13:36:33 +0000 (UTC)
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
> 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?


    Werner