Collisions between slurs and fingerings

• Feb 2, 2019 - 02:46
Reported version
P2 - Medium
Graphical (UI)
S3 - Major

Multiple slurs in the same grouping don't auto place to not collide with eachother
Fingering numbers collide with slurs


Status active needs info

We need a score (or extract) to show what you are saying (about multiple slurs/fingering numbers) and by specifying where and how.

Title Collisions with slurs and fingerings Collisions between slurs and fingerings
Severity S4 - Minor S3 - Major
Status duplicate active

This isn't a duplicate. The links relate to collisions between slurs and slurs, and between slurs and triplet numbers. See attached score for examples.

Attachment Size
collisions_fingering_slurs.mscz 4.45 KB
Priority P2 - Medium

True, although most likely it's the same underlying cause. As I recall from having looked at this, it would not be an easy fix, these things are handled a bit specially by autoplace.

I think the trigger here is fingerings on beamed notes, as this order in which things are laid out does not easily permit. I'm sure it's solvable with effort.

Turns out the specific issue of fingering on beamed notes is easy enough to fix. Only for notes "inside" slurs - the endpoints are handled very differently in order to not create bad effects with accidentals or other markings. We do a lot of complicate special-casing to deal with articulations on the endpoints. Similar processing would I guess be needed for fingering, but it would be more complicated because fingering is placed per note rather than per chord, fingering placement rules are themselves more complicated. So the "easy" fix in the following PR applies only to the notes inside the slur, but it should be an improvement anyhow, if not a complete resolution:

In reply to by Marc Sabatella

Marc, I just gave your code change a try and it does eliminate some collisions. Thank you for that! I appreciate it.

I've attached screen captures, before and after, in case they might be of interest. (I'm a MuseScore newbie so please excuse any beginner crimes.)

I would agree with the comment on your PR that "placing the slur outside the fingerings... is less desirable."

Attachment Size
after.png 250.09 KB
before.png 252.58 KB

In reply to by emillan

Instead of a new topic, here is an included collision in 3.2.3 and Nightly finger_slur_collide1.png :

Voice-1 with stems flipped down (to make room for cross-staffed notes above, not sure if this is the reason or not) the shown fingering collides with the under-slur with no auto-correction, and also there is collision at top right:

Ooh, that's not good, an unrelated bug you should file separately. Right now we apply a fixed offset to the fingerings in that situation but it's obviousy not a good one if there is a hook.