Hairpin causes unexpected extra space between staves

• Sep 16, 2021 - 17:47

OS: Linux Mint 20.1, Arch.: x86_64, MuseScore version (64-bit):, revision: 3224f34

The behaviour of hairpins in the attached score is unexpected.

  1. Click on the second hairpin and move it downwards with the keyboard arrow. The space between the staff and TAB immediately increases.
  2. Now click on the first hairpin and move it down with the keyboard arrow. The staff-TAB space only increases when the hairpin actually touches the TAB staff.

The Minimum distance setting for slurs and fret marks is zero. So we would expect that the second hairpin should not increase the staff-tab distance until it is nearly touching the slur or fretmark in TAB. But this isn't happening.

Attachment Size
staff_tab_excerpt.mscz 16.97 KB


Minimum distance for the slur affects only how that slur is from the staff (or other elements between it and the staff), not how far other elements further from the slur are from the slur. That would be the minimum distance for the more distant elements. That is, minimum distance is a one-way thing - it's the minimum distance between the element in question and what is closest to it in the direction of the staff itself.

For hairpins, minimum distance is not smart enough to measure distances along the hairpin - it looks at a rectangle encompassing the whole hairpin. That rectangle is hitting the slur sooner than the hairpin itself is, which is why the staff moves right away.

The minimum distance between elements on different staves or systems is given by Format / Style / Score / Minimum vertical distance. Set it to 0 and you'll see now the rectangle can actually touch the slur.

If the goal is to simply move the hairpin down without adding any space at all, simplest to just disable autoplace for the hairpin.

Do you still have an unanswered question? Please log in first to post your question.