Hairpin should not extend across barline when it contains its own dynamic marking

• May 26, 2019 - 05:49
Reported version
3.x-dev
Priority
P1 - High
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
fixed
Regression
No
Workaround
No
Project

3.1. R.C. / Windows10
First reported in https://musescore.org/en/node/289684

See:

Video_2019-05-26_064452.gif


Comments

Title Hairpin automatic placement fails on key signature change Hairpin should not extend across barline when it contains its own dynamic marking

I have changed the title to reflect the actual problem. It's totally correct for the hairpin to cross the barline if a key signature is present, this is standard practice if the next dynamic marking is far from the barline. However, the code that does this should not do so if the hairpin contains its own dynamic marking. So, if you remove the "mf" in the example above, the behavior is correct, but the presence of the "f" should disable this.

seems to happen on tempo changes

This would be surprising. I suspect you mean time signature changes since they increase the distance between the barline and first note.

Indeed. We don't look at what is increasing the distance (although I actually considered doing that). We just measure the distance. If it's over 3 sp to the next dynamic, we extend the hairpin. Eventually, that could be a style setting. But independently of that, we should fix it to not do that if the hairpin has its own attached dynamic.