Skip to content

Commit

Permalink
Fix GH#8971, fix #254426: Tie directions on multivoice chords
Browse files Browse the repository at this point in the history
Backport of musescore#9104, fixes musescore#8971
  • Loading branch information
asattely authored and Jojo-Schmitz committed Sep 21, 2021
1 parent 9e1ac62 commit 5dbaeeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libmscore/tie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,11 @@ void Tie::calculateDirection()
if (_slurDirection == Direction::AUTO) {
std::vector<Note*> notes = c1->notes();
size_t n = notes.size();
if (m1->hasVoices(c1->staffIdx(), c1->tick(), c1->actualTicks()) || m2->hasVoices(c2->staffIdx(), c2->tick(), c2->actualTicks())) {
// in polyphonic passage, ties go on the stem side
// if there are multiple voices, the tie direction goes on stem side
if (m1->hasVoices(c1->staffIdx(), c1->tick(), c1->actualTicks()))
_up = c1->up();
}
else if (m2->hasVoices(c2->staffIdx(), c2->tick(), c2->actualTicks()))
_up = c2->up();
else if (n == 1) {
//
// single note
Expand Down

0 comments on commit 5dbaeeb

Please sign in to comment.