MM rests include uncomplete measures

• Sep 2, 2018 - 11:41
Reported version
2.3
Type
Functional
Severity
S4 - Minor
Status
closed
Regression
No
Workaround
No
Project

A score like

multiMeasureRests1.png

should look like

multiMeasureRests2.png

but presently looks like

multiMeasureRests3.png

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

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

Not a formal PR on github.com, but still a proposed patch...

Status active PR created

let's keep the status for better tracking. Creating actual PR or manual applying changes is a matter of few movements :)

Status PR created needs info

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.

Status needs info PR created

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.

Attachment Size
MM-Rest-test.mscz 4.06 KB