Skip to content

Commit

Permalink
ignore hairpins on linked staves
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPudashkin committed Aug 9, 2024
1 parent 8cea54e commit e65f2fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engraving/playback/playbackcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ void PlaybackContext::handleSpanners(const ID partId, const Score* score, const
continue;
}

const Staff* staff = spanner->staff();
if (staff && !staff->isPrimaryStaff()) {
continue; // ignore linked staves
}

int spannerFrom = spanner->tick().ticks();
int spannerTo = spannerFrom + std::abs(spanner->ticks().ticks());

Expand Down

0 comments on commit e65f2fc

Please sign in to comment.