MM rests include uncomplete measures
Reported version
2.3
Type
Functional
Severity
S4 - Minor
Status
closed
Regression
No
Workaround
No
Project
A score like
should look like
but presently looks like
This may be fixed by adding just two lines in layout.cpp, line 1991ff.:
static bool breakMultiMeasureRest(Measure* m)
{
if (m->breakMultiMeasureRest())
return true;
if (m->repeatStart()
|| (m->prevMeasure() && m->prevMeasure()->repeatEnd())
// add two lines:
|| (m->isIrregular())
|| (m->prevMeasure() && m->prevMeasure()->isIrregular())
|| (m->prevMeasure() && (m->prevMeasure()->sectionBreak())))
return true;
Attachment | Size |
---|---|
multiMeasureRests2.png | 12.85 KB |
multiMeasureRests1.png | 11.63 KB |
multiMeasureRests3.png | 12.12 KB |
Comments
Not a formal PR on github.com, but still a proposed patch...
no PR and "patch (code needs review)" is gone
let's keep the status for better tracking. Creating actual PR or manual applying changes is a matter of few movements :)
OK, so turning it into a PR: https://github.com/musescore/MuseScore/pull/4191
One thing I don't understand is why measure 4 is not marked as being irregular, while 1, 5 and 8 are (via that little blue - sign above staff)
If I untick 'Exclude from measure count' on those 2 pickup measures, I get that 'bogus' result, but that is the same as in 2.x and as by design as far as I can see?
Strange though that the 'remainder' measure don't get included in the mm rest. But do when turning their half and quarter rest into a full measure rest.
With that patch it is irrelevant whether 'Exclude from measure count' is ticked or not and also whether a full measure rest gets forced on an incomplete measures (vie Shift+Ctrl+Del), So we're gaining consistency, mm-rests now only span subsequent empty regular measures.
Still this is not a regression, 2.3.2 has the same issue, probably earlier versions too
Fixed in branch master, commit ef59d24275
fix #275809: MM rests should not include irregular measures
Fixed in branch master, commit 633721828a
Merge pull request #4191 from Jojo-Schmitz/mm-rest
fix #275809: MM rests should not include irregular measures
Automatically closed -- issue fixed for 2 weeks with no activity.