Strange tie flipping behavior
Hi there,
I'm creating two notes connected by tie. Then I want to flip left note stem and I'm waiting for flipping tie as well. But flipping tie depend on direction of the second note stem. I don't understand the algorithm :(
I really appreciate if someone could tell me what is going on, whether it is correct or not and it is a bug or not?
UPD: the easiest case with quarter notes:
Comments
It is curious to have a tie and a rest between 2 notes, how do you play that
In reply to It is curious to have a tie… by Raymond Wicquart
I think it is more like a bug of MuseScore, that gets kept and turned into a feature, that you can tie notes that are not directly adjacent.
I wonder whether that plays a role here with regards to stem and slur direction
In reply to I think it is more like a… by Jojo-Schmitz
Definitely not a bug - this was added very deliberately to solve an important use case (play-and-hold arpeggios). One can quibble about whether the UI for invoking this feature was the best choice, of course - probably it should be harder to do this accidentally.
In reply to It is curious to have a tie… by Raymond Wicquart
Ok, sorry, my fault. BTW, the issue exists for the simplest case with two quarter notes. See updated topic message.
Standard engraving rules for ties are pretty complex, but we do our best to implement them. The rules here (according to our standard reference, Elaine Gould's "Behind Bars") are that for single notes with stems in the same direction, tie goes on the head side, and for ties with stems in opposite direction, ties should curve away from the middle staff line. This is exactly what we do in the example you show, if I am understanding your concern correctly.
EDIT: on the other hand, take your opposite-stem C and move it down an octave, and suddenly we aren't doing it right - we are still curving up. I think our rule is actually "tie goes up for opposing stems", which isn't right according to Gould. Might be right according to some other source though - some of this code predates Gould's book.