Exchange voices with partial measure selected works all the way to end of score

• Jan 31, 2017 - 16:33
Reported version
2.1
Type
Functional
Severity
S3 - Major
Status
closed
Project

In any score in a measure that is not the last measure, select some notes that are not tied, but not the whole measure. Exchange voices 1 & 2.

Result: voices are exchanged but all succeeding measures now have rests in voices 1 & 2.

This applies to 2.0.3 & 2.1-dev


Comments

Interesting! Works fine if the full measure is selected. Same problem in 3.0. I guess somehow when we are trying to expand the measure to fill the gaps, we miss the endpoint and go on to the end of score. Not good.

OK, the tigger is to not select the last chord or rest in a measure, indeed pretty bad, IMHO warants upgrade to major

So what I believe to have seen affecting just the next measure, must have been something else, I'll keep an eye on that and report when it happens and I can reproduce

What you saw that affects the next measure is probably something like

put 2 1/2 notes in voice 2 in a 4/4 measure.
change the first to a whole note by exiting note entry, select note, press 7
You get a rest in next measure only.

I just did a test. I normally only use this on the last measure I'm working on. I tried it with an earlier measure and discovered that it is actually exchanging all the measures to the end, not simply putting an extra rest in the measures.

Title Exchange voices causes rests to appear in remainder of measures Exchange voices with partial measure selected works all the way to end of score

Nope. That's a very small glitch. This one is much bigger - as mentioned, all the way to the end of the score, and it isn't just that rests are add - the voice exchange actually goes to the end of the score as well. Title changed to reflect this.

Status (old) active patch (code needs review)
Status active  

The exchange voice operation is performed on entire measures. The selection is used to determine which measures should be affected. In this way, it is similar to the "Delete Selected Measures" command in 2.x. There is a bug (with a trivial fix) that will cause the operation to continue to the end of the score if the selection ends on a segment that is not at the end of a measure. For the fix, please see https://github.com/musescore/MuseScore/pull/3790.