Hi Urs,I was just curious what the lilypond-export OLL-module (https://github.com/jpvoigt/lilypond-export/) is doing with this pattern. It seems the final beam closing is not fetched correctly. At least in MuseScore the last note with automatic beams is not beamed.
Best Jan-Peter Am 05.05.2018 um 08:25 schrieb Urs Liska:
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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
export-example2.pdf
Description: Adobe PDF document
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> <score-partwise version="3.0"> <part-list> <score-part id="P1"> <part-name>Part 1</part-name> </score-part> <score-part id="P2"> <part-name>Part 2</part-name> </score-part> </part-list> <part id="P1"> <measure number="1"> <attributes> <divisions>1024</divisions> </attributes> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>512</duration> <voice>1</voice> <type>eighth</type> <beam number="1">begin</beam> </note> <note> <pitch> <step>B</step> <octave>4</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">end</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>512</duration> <voice>1</voice> <type>eighth</type> <beam number="1">begin</beam> </note> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>B</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>C</step> <octave>5</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">end</beam> </note> <note> <pitch> <step>B</step> <octave>4</octave> </pitch> <duration>448</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>64</duration> <voice>1</voice> <type>64th</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">end</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> </note> </measure> </part> <part id="P2"> <measure number="1"> <attributes> <divisions>1024</divisions> </attributes> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>512</duration> <voice>1</voice> <type>eighth</type> <beam number="1">begin</beam> </note> <note> <pitch> <step>B</step> <octave>4</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">end</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>512</duration> <voice>1</voice> <type>eighth</type> <beam number="1">begin</beam> </note> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>B</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>C</step> <octave>5</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">end</beam> </note> <note> <pitch> <step>B</step> <octave>4</octave> </pitch> <duration>448</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>64</duration> <voice>1</voice> <type>64th</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>256</duration> <voice>1</voice> <type>16th</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">continue</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>128</duration> <voice>1</voice> <type>32nd</type> <beam number="1">end</beam> </note> </measure> </part> </score-partwise>
\version "2.19.80" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % This file is part of openLilyLib, % % =========== % % the community library project for GNU LilyPond % % (https://github.com/openlilylib) % % ----------- % % % % Library: lilypond-export % % =============== % % % % export foreign file formats with LilyPond % % % % lilypond-export is free software: you can redistribute it and/or modify % % it under the terms of the GNU General Public License as published by % % the Free Software Foundation, either version 3 of the License, or % % (at your option) any later version. % % % % lilypond-export is distributed in the hope that it will be useful, % % but WITHOUT ANY WARRANTY; without even the implied warranty of % % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % % GNU General Public License for more details. % % % % You should have received a copy of the GNU General Public License % % along with openLilyLib. If not, see <http://www.gnu.org/licenses/>. % % % % openLilyLib is maintained by Urs Liska, u...@openlilylib.org % % lilypond-export is maintained by Jan-Peter Voigt, jp.vo...@gmx.de % % % % Copyright Jan-Peter Voigt, Urs Liska, 2017 % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \version "2.19.58" \include "oll-core/package.ily" \loadPackage lilypond-export music = << \relative { a'8 b16 a g8 a32 b c16 b16.. a64 g16 a32 g } \relative { a'8[ b16 a] g8[ a32 b c16] b16..[ a64 g16 a32 g] } >> opts.exporter = #exportMusicXML % or as a layout extension that is added to the layout \score { \music \layout { \FileExport #opts } }
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user