Hi,
I'm trying to add support to python-ly for exporting manual beams to
MusicXML.
I managed to export the commands to start and end a beam, but that's not
sufficient. In theory
(https://usermanuals.musicxml.com/MusicXML/Content/EL-MusicXML-beam.htm)
the beaming pattern is described in detail in MusicXML, and when I
export something from MuseScore this is also what I get.
I don't see it as reasonable to properly implement this in the python-ly
exporter (at least for now) because that would essentially mean
re-implementing the whole beaming-pattern code from LilyPond (which even
isn't fully correct either).
However, I realized that when I have the beam start and end encoded by
python-ly and then (so far manually) add
<beam number="1">continue</beam>
to each note, regardless of the actual beaming pattern situation,
MuseScore will correctly import the XML file (and add the correct
encoding when re-exporting to XML).
While I know this is not a correct export I think it would be a good
start and in any case better than nothing. But I would like to know what
the other programs will do with the code.
So I'd be happy if people could import the attached .xml file to Finale,
Sibelius and (if possible) Dorico, and tell me about the results. Also
attached is the reference image of what it should look like.
(Note that the .xml is manually tweaked at this point).
TIA
Urs
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 2.0 Partwise//EN"
"http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.0">
<identification>
<encoding>
<software>python-ly 0.9.5</software>
<encoding-date>2018-05-05</encoding-date>
</encoding>
</identification>
<part-list>
<score-part id="P1">
<part-name />
</score-part>
</part-list>
<part id="P1">
<measure number="1">
<attributes>
<divisions>128</divisions>
<time symbol="common">
<beats>4</beats>
<beat-type>4</beat-type>
</time>
<clef>
<sign>G</sign>
<line>2</line>
</clef>
</attributes>
<note>
<pitch>
<step>A</step>
<octave>4</octave>
</pitch>
<duration>64</duration>
<voice>1</voice>
<type>eighth</type>
<beam number="1">begin</beam>
</note>
<note>
<pitch>
<step>B</step>
<octave>4</octave>
</pitch>
<duration>32</duration>
<voice>1</voice>
<type>16th</type>
<beam number="1">continue</beam>
</note>
<note>
<pitch>
<step>A</step>
<octave>4</octave>
</pitch>
<duration>32</duration>
<voice>1</voice>
<type>16th</type>
<beam number="1">end</beam>
</note>
<note>
<pitch>
<step>G</step>
<octave>4</octave>
</pitch>
<duration>64</duration>
<voice>1</voice>
<type>eighth</type>
<beam number="1">begin</beam>
</note>
<note>
<pitch>
<step>A</step>
<octave>4</octave>
</pitch>
<duration>16</duration>
<voice>1</voice>
<type>32nd</type>
<beam number="1">continue</beam>
</note>
<note>
<pitch>
<step>B</step>
<octave>4</octave>
</pitch>
<duration>16</duration>
<voice>1</voice>
<type>32nd</type>
<beam number="1">continue</beam>
</note>
<note>
<pitch>
<step>C</step>
<octave>5</octave>
</pitch>
<duration>32</duration>
<voice>1</voice>
<type>16th</type>
<beam number="1">end</beam>
</note>
<note>
<pitch>
<step>B</step>
<octave>4</octave>
</pitch>
<duration>56</duration>
<voice>1</voice>
<type>16th</type>
<dot />
<dot />
<beam number="1">begin</beam>
</note>
<note>
<pitch>
<step>A</step>
<octave>4</octave>
</pitch>
<duration>8</duration>
<voice>1</voice>
<type>64th</type>
<beam number="1">continue</beam>
</note>
<note>
<pitch>
<step>G</step>
<octave>4</octave>
</pitch>
<duration>32</duration>
<voice>1</voice>
<type>16th</type>
<beam number="1">continue</beam>
</note>
<note>
<pitch>
<step>F</step>
<octave>4</octave>
</pitch>
<duration>16</duration>
<voice>1</voice>
<type>32nd</type>
<beam number="1">continue</beam>
</note>
<note>
<pitch>
<step>E</step>
<octave>4</octave>
</pitch>
<duration>16</duration>
<voice>1</voice>
<type>32nd</type>
<beam number="1">end</beam>
</note>
</measure>
</part>
</score-partwise>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user