Hairpins end at first note of next measure if there's a key signature change and a dynamic

• Nov 26, 2019 - 19:10
Reported version
S4 - Minor
by design

Steps to reproduce:
1. Add either a crescendo or diminuendo hair pin to first measure
2. Change key signature and/or cleff of second measure
3. Add a dynamic (e.g. mf) on first note of second measure
3. The line will display as ending on the dynamic rather than on the first measure's barline

Other lines seem to work fine.

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit):, revision: 1385a0d

Might be related to #297026.

Edit: also glitches with mid-measure cleff/key signature change, without the need of a dynamic, as seen in Hairpin_Bug_2.png

Attachment Size
Hairpin_Bug.mscz 4.25 KB
Hairpin_Bug.png 9.85 KB


Status active by design

This is the way it's designed to work. The workaround is to disable auto place for either the hairpin or dynamic. Since it is not possible to make this work the other way around, this is the default behavior.

In reply to by mike320

I disagree. If displaying it wrong is the way it's designed to work then obviously the design should change and the issue be reopened even if it takes years to be fixed.

If changing it in code is considered too hard then this should be "wontfix" instead of "by design".

Sorry for the accidental issue edit, was supposed to be reply.

This is not displaying it wrong. This display happens in a lot of scores so it was by design. It's not a problem from the point of view of the programmers. This is the very definition of by design. There as some bad design decisions in my opinion as well, but the answer to my concerns is also by design. As I said, it's easy to make the display the way you want. Select the hairpin and press = and it will do what you want.

Sorry about that, I didn't know this was a valid design. Makes sense when ending with a dynamic since it graphically looks like it's going from a dynamic gradation to somet other dynamic.

Is it also seen in mid-cleff changes without a dynamic as shown in the second image?

I think the hairpin that extends under the key change with no dynamic is wrong. Hopefully someone with Behind the bars, the reference used to determine correct notation in situations like this will tell us the correct answer.