[trunk] beam on wrong side for semi-quavers in 6/8 (or similar) time

• Feb 9, 2012 - 01:29
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Setup: trunk rev. 5304, latest Qt SDK (Qt lib 4.7.4) under Ubuntu 11.10

Step: create (or load) a score with 6/8 time and some siciliana rhythm (a sample score is attached).

Result: the semi-quavers have the beam on the right side instead of the left side (see attached image).
hmmmm

Thanks,

M.

Attachment Size
trunk_16thbeams.mscz 1.72 KB
trunk_16thbeams.png 4.76 KB

Comments

After some investigation, I noticed the following:

function Beam::layout2() (file beam.cpp), line 1053 ("// create broken segment"), if the test

if (crl[idx-2]->duration() < crl[idx]->duration())

is inverted:

if (crl[idx-2]->duration() >= crl[idx]->duration())

the 16th beam after a dotted 8th is correct; I tried some test scores and this change did not result in undesired side effects; as far as I understand the code, the reversed test seems to make more sense.

As that test is there since many weeks at least, probably it is not the real cause of the issue, but it might cast some light on the matter.

Thanks,

M.

Status (old) active closed

this is fixed in r5546.
Unfortunately both beam directions are possible. It depends on the desired rythm structure. So we need a way to override MuseScores decision manually.