Re: musicxml2ly unitialised variable

Raphael Mankin <[email protected]> Wed, 25 Sep 2024 15:50:33 +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?
> 

I will try again and see.
Thanks for the quick response.