[MusicXML Import] Ottava ends at wrong place visually
1. Open attached mscz (produced in 1.3).
2. 'File'>'Export'.
3. Choose 'MusicXML'.
4. 'Save'.
5. Open MusicXML.
Expected result:
Actual result: The ottava sounds correct, but it visually ends one note early.
Note: Also attached is the produced MusicXML - it opens fine in 1.3.
Using MuseScore 2.0 Nightly Build bbe146b - Mac 10.7.5.
Attachment | Size |
---|---|
Ottava ends at wrong place visually.mscz | 1.89 KB |
Ottava ends at wrong place visually.xml | 8.11 KB |
Ottava ends at wrong place visually - Expected Result.png | 65.8 KB |
Ottava ends at wrong place visually - Actual Result.png | 62.53 KB |
Comments
I'm assuming the problem is with import - perhaps it is both that and export?
I don't know what the issue is, and it doesn't seem possible to reproduce without the Voice entry.
Hopefully, someone with more knowledge will be able to find out.
Export is OK (ottava ending between the last chord and the last rest), issue is with import.
Initial investigation result: ottava segment length (in ticks) is correct after xml import, but track2 is not set and end element is incorrect. Still looking for the exact cause.
I suspect is it caused by the different timing in staff one and staff two. Something like incorrectly assuming the ottava ends at the note with lyric "ri" in staff one and then anchoring the ottava end to the note in staff 2 that starts at the same time as the note in staff 1.
Cause found: missing initialization of track2 anchors the ottava at a note in the first staff. Will be fixed shortly, but I first want to verify if the same issue occurs with other spanners and verify correct handling of the corner cases. Takes a few days.
This indeed affects all spanners (except slurs). Minimum file that illustrates the issue attached.
I sometimes forget to consider other elements.
Thanks Leon.
See PR #1531
Fixed in 49613c00e4
Automatically closed -- issue fixed for 2 weeks with no activity.