Re: XML2Liliypond conversion
At 19:38 on 22 Jun 2010, Patrick Schmidt wrote: > Correct me if I'm wrong but I don't think that musicxml2ly can > read .capx-files. It can handle .xml and .mxl-files, though. This looks as though it might be helpful: http://bjungmann.privat.t-online.de/CapXMLSkripte.htm#CapToMusic -- Mark Knoop ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: XML2Liliypond conversion
Hi, On Tue, 22 Jun 2010 19:38:40 +0200 Patrick Schmidt wrote: > Correct me if I'm wrong but I don't think that musicxml2ly can > read .capx-files. It can handle .xml and .mxl-files, though. But you > can import .cap(x)-files with MuseScore and export them > as .ly-files. MuseScore converts to LilyPond Version 2.12.0. You can > update it with convert-ly. You'll probably need to edit the > resulting .ly-files. In my tests the results were not too bad. > > hth, > patrick Sorry, I was assuming the capx was a capella musicxml export file. David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: XML2Liliypond conversion
Correct me if I'm wrong but I don't think that musicxml2ly can read .capx-files. It can handle .xml and .mxl-files, though. But you can import .cap(x)-files with MuseScore and export them as .ly-files. MuseScore converts to LilyPond Version 2.12.0. You can update it with convert-ly. You'll probably need to edit the resulting .ly-files. In my tests the results were not too bad. hth, patrick Am 22.06.2010 um 17:51 schrieb Maarten de Keijzer: I am using Lilypond on an XP machine, and I am trying to convert some (compressed) XML files from Capella. But all ends each time with the same error messages: C:\Temp\nc\XML>musicxml2ly -v Yes.capx Reading MusicXML from Yes.capx ... Traceback (most recent call last): File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin \musicxml2ly.py", line 1927, in ?main() File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin \musicxml2ly.py", line 1922, in mainvoices = convert (filename, options) File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin \musicxml2ly.py", line 1841, in converttree = read_musicxml (filename, options.compressed, options.use_lxml) File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin \musicxml2ly.py", line 1835, in read_musicxmlreturn read_xml (io_object, use_lxml) File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin \musicxml2ly.py", line 1804, in read_xmldoc = minidom.parse (io_object) File "C:\Program Files\LilyPond\usr\lib\python2.4\xml\dom \minidom.py", line 1915, in parsereturn expatbuilder.parse(file) File "C:\Program Files\LilyPond\usr\lib\python2.4\xml\dom \expatbuilder.py", line 924, in parseresult = builder.parseFile (fp) File "C:\Program Files\LilyPond\usr\lib\python2.4\xml\dom \expatbuilder.py", line 207, in parseFileparser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 2 Can someone tell what is wrong; I assume that something in the scripts is incorrect. TIA, Maarten ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: XML2Liliypond conversion
Hi, On Tue, 22 Jun 2010 17:51:12 +0200 "Maarten de Keijzer" wrote: > I am using Lilypond on an XP machine, and I am trying to convert some > (compressed) XML files from Capella. > But all ends each time with the same error messages: > > C:\Temp\nc\XML>musicxml2ly -v Yes.capx > Reading MusicXML from Yes.capx ... > Traceback (most recent call last): > File "C:\Program Files\Easy /snip/ > xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, > column 2 > > Can someone tell what is wrong; I assume that something in the > scripts is incorrect. It could be the presence of a BOM [1] or capella doesn't specify the encoding in the XML file as it writes it. Expat, I believe, assumes utf-8 encoding if none is specified. David [1] http://www.opentag.com/xfaq_enc.htm#enc_bom ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
XML2Liliypond conversion
I am using Lilypond on an XP machine, and I am trying to convert some (compressed) XML files from Capella. But all ends each time with the same error messages: C:\Temp\nc\XML>musicxml2ly -v Yes.capx Reading MusicXML from Yes.capx ... Traceback (most recent call last): File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin\musicxml2ly.py", line 1927, in ?main() File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin\musicxml2ly.py", line 1922, in mainvoices = convert (filename, options) File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin\musicxml2ly.py", line 1841, in converttree = read_musicxml (filename, options.compressed, options.use_lxml) File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin\musicxml2ly.py", line 1835, in read_musicxmlreturn read_xml (io_object, use_lxml) File "C:\Program Files\Easy LilyPond\LilyPond\usr\bin\musicxml2ly.py", line 1804, in read_xmldoc = minidom.parse(io_object) File "C:\Program Files\LilyPond\usr\lib\python2.4\xml\dom\minidom.py", line 1915, in parsereturn expatbuilder.parse(file) File "C:\Program Files\LilyPond\usr\lib\python2.4\xml\dom\expatbuilder.py", line 924, in parseresult = builder.parseFile(fp) File "C:\Program Files\LilyPond\usr\lib\python2.4\xml\dom\expatbuilder.py", line 207, in parseFileparser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 2 Can someone tell what is wrong; I assume that something in the scripts is incorrect. TIA, Maarten ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user