Jump to content

Bug: Auto-slurs merged into single slur when exporting to MusicXML


Lars L

Recommended Posts

Version: Logic Pro 10.6.2

OS: macOS 10.15.7

Computer: MacBook Pro Retina, 15 inch, late 2013

 

Description:

Exporting a score to MusicXML will not correctly preserve all auto-slurs. When there are consecutive auto-slurs in the same region, without any notes inbetween the slurs, exporting to MusicXML will merge together the slurs into a single slur, spanning from the beginning of the first auto-slur to the end of the last auto-slur.

 

Steps to reproduce:

  1. Create a software instrument and a MIDI region in it.
  2. Add four notes in the piano roll or score editor, for example C3, D3, E3, F3 on successive beats (filling each beat). The specific notes or note lengths should not matter, however.
    432211106_Beforeaddingauto-slur.png.f99fd7e0dd6958e2cd77c8b5c6fbde46.png
  3. In the score editor, add an auto-slur between C3–D3 and an auto-slur between E3–F4.
    1115218705_Afteraddingauto-slur.png.aa8ffb27f1c8e641d62952c9f3024139.png
  4. Export to MusicXML.

 

Expected behavior:

The exported MusicXML file should preserve the slurs between C3–D3 and E3–F3, so that there are two slurs in the exported file.

 

Actual behavior:

The exported MusicXML file has merged the slurs together into a single slur, between C3–F3. Importing the file into Logic or another note editor will therefore not preserve the original slurs. Result after importing:

1991615260_Afterimporting.png.047c6ed131d459625e1915bdba70d706.png

Technical details:

Inspecting the MusicXML file shows that the error lies in the export from Logic. The file contains the following data for the notes:

<note>
<pitch>
	<step>C</step>
	<octave>4</octave>
</pitch>
<duration>1</duration>
<voice>1</voice>
<type>quarter</type>
<stem>up</stem>
<staff>1</staff>
<notations>
	<slur number="1" type="start"/>
</notations>
</note>
<note>
<pitch>
	<step>D</step>
	<octave>4</octave>
</pitch>
<duration>1</duration>
<voice>1</voice>
<type>quarter</type>
<stem>up</stem>
<staff>1</staff>
</note>
<note>
<pitch>
	<step>E</step>
	<octave>4</octave>
</pitch>
<duration>1</duration>
<voice>1</voice>
<type>quarter</type>
<stem>up</stem>
<staff>1</staff>
</note>
<note>
<pitch>
	<step>F</step>
	<octave>4</octave>
</pitch>
<duration>1</duration>
<voice>1</voice>
<type>quarter</type>
<stem>up</stem>
<staff>1</staff>
<notations>
	<slur number="1" type="stop"/>
</notations>
</note>

Only the first and last note contain elements. These elements should be present in each note, with proper start/stop pairs according to the score.

 

Workarounds:

Change the slurs from auto-slurs to manual slurs. Consecutive manual slurs are preserved correctly when exporting to MusicXML.

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...