musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.23k stars 2.65k forks source link

Key, Clef, Time Signature, Staff Type Change inconsistencies #19107

Open sammik opened 1 year ago

sammik commented 1 year ago

Issue type

Engraving bug

Bug description

Lets start with score Start-point where in measure B is:

Measure A is measure before B

After measure operations (removing, adding), all elements should behave same. But whats the actual status?

1) Insert measure between A and B

Insert

2) Remove measure A (measure before changes)

Remove Before

3) Remove measure B (measure with changes)

Remove Change Measure

Alternative

4) Instrument Change

Now imagine, user adds Instrument change to score. All elements mentioned above (key, clef, time and staff type) are parts of Instrument change, so all of them should be preserved and palced in same point, as instrument change itself is.

So, if "move clef keys on insertion" (1) is intended behaviour, we need one of the following: 1) move also instrument change backward 2) or don't move elements, if the are "forInstrumentChange"

5) First measure

a) Remove elements

If we add all elements mentioned above to the (begining of) first measure, and trying to remove them

https://github.com/musescore/MuseScore/assets/1646034/fbf9c17a-6378-46f6-a8ad-3b888a714ddc

b) Remove first measure

If if dont remove elements one by one, but remove first measure itself

https://github.com/musescore/MuseScore/assets/1646034/0ee22698-bf70-4bc1-b26f-0978bc341150

MuseScore Version

master

Regression

I don't know

Operating system

Ubuntu 22.04

Additional context

No response

sammik commented 1 year ago

@oktophonie @bkunda

MarcSabatella commented 1 year ago

When inserting measures, most users seem to expect the results to be different depending on whether you insert after the bar A or before bar B. See for example https://github.com/musescore/MuseScore/issues/18149