lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML to .ly and Lilypond, again


From: Leszek Wroński
Subject: Re: XML to .ly and Lilypond, again
Date: Fri, 12 May 2017 13:42:53 +0200

Dear Guys,

first, thank you very much for the replies!

Second, for a little bit of detective work. I have not updated my
Finale in years, so if it produced correct XML files in the past, it
should do the same now (I always write using a similar really basic
setup, since actual editing is to be done in Lilypond). Anyway, I
tracked down an XML file which converted correctly in 2.19.5. I wanted
to check whether I would get the 'lots of null characters' problem
currently. To my surprise, I didn't even get to that part. Musicxml2ly
gave me the following:

----------------------------------------------
musicxml2ly: Reading MusicXML from Kyrie.xml ...
musicxml2ly: Converting to LilyPond expressions...
(.....)
musicxml2ly: Output to `Kyrie.ly'
Traceback (most recent call last):
  File "/home/leszek/lilypond/usr/bin/musicxml2ly", line 3269, in ?
    main()
  File "/home/leszek/lilypond/usr/bin/musicxml2ly", line 3263, in main
    voices = convert(filename, options)
  File "/home/leszek/lilypond/usr/bin/musicxml2ly", line 3175, in convert
    score_information.print_ly(printer)
  File "/home/leszek/lilypond/usr/share/lilypond/current/python/musicexp.py",
line 855, in print_ly
    self.format_header_strings(k, v, printer)
  File "/home/leszek/lilypond/usr/share/lilypond/current/python/musicexp.py",
line 848, in format_header_strings
    printer.newline()
  File "/home/leszek/lilypond/usr/share/lilypond/current/python/musicexp.py",
line 123, in newline
    self._file.write (self._line + '\n')
  File "/home/leszek/lilypond/usr/lib/python2.4/codecs.py", line 501, in write
    return self.writer.write(data)
  File "/home/leszek/lilypond/usr/lib/python2.4/codecs.py", line 178, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position
19: unexpected code byte
------------------------------------------------

(Isn't '0xa9' the copyright character? ;))

The XML file, if someone wants to take a peek, is here:
https://www.dropbox.com/s/1dnv1hthyp7ss5h/Kyrie.xml?dl=0

Unfortunately it seems I do not have an XML file about which I could
be sure that it converted correctly using a version of Lilypond newer
than 2.19.5. Anyway, since one and the same XML file stopped
converting correctly, it indeed seems that in the meantime some
encoding issues have been introduced to musicxml2ly (I'm using 2.19.48
now).

If you think I could be of any additional help (well, not sure this
was helpful at all, but I'm trying ;)), please tell me what info I
should provide.

Cheers and thank you again,

Leszek.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]