Strange tie flipping behavior

• Feb 22, 2018 - 09:29

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:

Screencast 2018-02-22 at 1.09.47 PM.gif


Comments

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.

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