So, I have the following lilypond file, named test.ly:
\version "2.19.46" music = { c'' } \score { \new Staff \music \layout { } \midi { } }
I compile it so: lilypond test.ly which generates a pdf file and a midi file.I open the midi file in Musescore 2.0.3.1 and export an xml file, named test_midi_Musescore.xml
I run musicxml2ly test_midi_Musescore.xml, which generates a lilypond file named test_midi_Musescore.ly.
There seem to be two problems with the output of musicxml2ly: * file test_midi_Musescore.ly produces: test_midi_Musescore.ly: dataIt should probably produce: test_midi_Musescore.ly: ASCII text. Another indication that something is aglee with test_midi_Musescore.ly is the output of "more test_midi_Musescore.ly", namely: "test_midi_Musescore.ly" may be a binary file. See it anyway?
* lilypond is unable to compile test_midi_Musescore.ly. It fails with pat$ lilypond test_midi_Musescore.ly GNU LilyPond 2.19.46 Processing `test_midi_Musescore.ly' Parsing... test_midi_Musescore.ly:6:25: error: EOF found inside string encodingsoftware = "test_midi_Musescore.ly:6:25: error: syntax error, unexpected end of input, expecting \header
encodingsoftware = " fatal error: failed files: "test_midi_Musescore.ly"I am attaching test.midi, test_midi_Musescore.ly and test_midi_Musescore.xml.
Is there a workaround? Is this a bug?
test.midi
Description: MIDI audio
test_midi_Musescore.ly
Description: Binary data
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> <score-partwise> <identification> <encoding> <software>MuseScore 2.0.3.1</software> <encoding-date>2016-12-14</encoding-date> <supports element="accidental" type="yes"/> <supports element="beam" type="yes"/> <supports element="print" attribute="new-page" type="yes" value="yes"/> <supports element="print" attribute="new-system" type="yes" value="yes"/> <supports element="stem" type="yes"/> </encoding> </identification> <defaults> <scaling> <millimeters>7.05556</millimeters> <tenths>40</tenths> </scaling> <page-layout> <page-height>1683.78</page-height> <page-width>1190.55</page-width> <page-margins type="even"> <left-margin>56.6929</left-margin> <right-margin>56.6929</right-margin> <top-margin>56.6929</top-margin> <bottom-margin>113.386</bottom-margin> </page-margins> <page-margins type="odd"> <left-margin>56.6929</left-margin> <right-margin>56.6929</right-margin> <top-margin>56.6929</top-margin> <bottom-margin>113.386</bottom-margin> </page-margins> </page-layout> <word-font font-family="FreeSerif" font-size="10"/> <lyric-font font-family="FreeSerif" font-size="11"/> </defaults> <part-list> <score-part id="P1"> <part-name>Piano</part-name> <part-abbreviation>Pno.</part-abbreviation> <score-instrument id="P1-I1"> <instrument-name>Piano</instrument-name> </score-instrument> <midi-device id="P1-I1" port="1"></midi-device> <midi-instrument id="P1-I1"> <midi-channel>1</midi-channel> <midi-program>1</midi-program> <volume>78.7402</volume> <pan>0</pan> </midi-instrument> </score-part> </part-list> <part id="P1"> <measure number="1" width="379.26"> <print> <system-layout> <system-margins> <left-margin>0.00</left-margin> <right-margin>697.91</right-margin> </system-margins> <top-system-distance>70.00</top-system-distance> </system-layout> </print> <attributes> <divisions>1</divisions> <key> <fifths>0</fifths> </key> <time> <beats>4</beats> <beat-type>4</beat-type> </time> <clef> <sign>G</sign> <line>2</line> </clef> </attributes> <direction placement="above"> <direction-type> <metronome parentheses="no"> <beat-unit>quarter</beat-unit> <per-minute>60</per-minute> </metronome> </direction-type> <sound tempo="60"/> </direction> <note default-x="100.19" default-y="-15.00" dynamics="98.89"> <pitch> <step>C</step> <octave>5</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>quarter</type> <stem>down</stem> <lyric number="1"> <syllabic>single</syllabic> <text>creator: </text> </lyric> </note> <note> <rest/> <duration>1</duration> <voice>1</voice> <type>quarter</type> </note> <note> <rest/> <duration>2</duration> <voice>1</voice> <type>half</type> </note> </measure> </part> </score-partwise>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user