moinejf/abc2svg

Use the xml exported by musescore to generate an abc file prompt: bad tie

Closed this issue · 2 comments

musescore xml:
<measure number="17"> <note> <pitch> <step>A</step> <octave>4</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>up</stem> <beam number="1">begin</beam> </note> <note> <pitch> <step>G</step> <octave>4</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>up</stem> <beam number="1">end</beam> </note> <note> <pitch> <step>E</step> <octave>4</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>up</stem> <beam number="1">begin</beam> </note> <note> <pitch> <step>D</step> <octave>4</octave> </pitch> <duration>2</duration> <voice>1</voice> <type>eighth</type> <stem>up</stem> <beam number="1">end</beam> </note> <note> <rest/> <duration>2</duration> <voice>1</voice> <type>eighth</type> </note> <note> <pitch> <step>E</step> <octave>4</octave> </pitch> <duration>1</duration> <tie type="start"/> <voice>1</voice> <type>16th</type> <stem>up</stem> <beam number="1">begin</beam> <beam number="2">begin</beam> <notations> <tied type="start"/> </notations> </note> <note> <pitch> <step>D</step> <octave>4</octave> </pitch> <duration>1</duration> <voice>1</voice> <type>16th</type> <stem>up</stem> <beam number="1">end</beam> <beam number="2">end</beam> </note> </measure>
image

abc file:
AG ED z E/-D/
image

This is not a ABC nor a abc2svg problem.
In the ABC standard, '-' is a tie, and in music, a tie is a curved line that makes the duration of a note to be extended by the duration of the next note. In all cases both notes must be at the same pitch. So,
E/-D/
is wrong.

In the upper image, there is a slur, so, the generated ABC should have been:
AG ED z(E/D/ | E6)

Thanks moinejf!