Ottavas are not correctly imported
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project
Create a score in version 2.x and insert some ottavas (e.g. 8vb, 15ma, etc.).
Import the score into version 3.
All of the ottavas will display as 8va ottavas. Playback of the ottavas is not affected.
The workaround is to either delete and re-insert the ottavas or change the type of the ottava in the inspector.
Fix version
3.0.3
Comments
Yup...verified. Here's a score saved in 2.0.3 with all the different ottavas: Ottavas-saved-in-2pt0pt3.mscz
They all get imported looking like 8va, althougth internally the plackback is correct (and inspector indicates they are the correct type). So it seems to just be the label.
Interesting if after importing into MuseScore 3.0.1 and right click the ottavas and open Debugger and click "reset", then the ottavas all correct themselves. So maybe somehow a reset is needed in import?
Looking through debugger upon import, and I see that _ottavaType is correctly set to the corresponding desired type.
So far what I've figured out is that if in read206.cpp in readOttava() if I add
ottava->ScoreElement::reset();
after the lineottava->setOttavaType(OttavaType(idx));
, then everything looks good on import. But I realize that is not the proper way to fix this...https://github.com/musescore/MuseScore/pull/4596
Fixed in branch master, commit 1d1ae55827
_fix #281910 ottava import 2.x
While all the properties of ottavas saved in 2.x files were actually imported into 3.0, however the properties which are affected by the style defaults weren't actually applied, so it seemed as if ottavas with subtype property other than 8va weren't properly imported. Indeed performing any operation which triggered applying the style defaults would reveal that yes the ottavas subtype property was indeed imported, but not apparent.
This fixes the problem by calling styleChanged() at the end of read206.cpp's readOttava() to now trigger these properties to be set according to the style defaults for the particular ottava subtype. So now the different types of ottavas actually get their style applied during import._
Fixed in branch master, commit 740467d1d1
_Merge pull request #4596 from ericfont/281910-ottava-206-import
fix #281910 ottava import 2.x_
Automatically closed -- issue fixed for 2 weeks with no activity.