Skip to content

Commit

Permalink
Make the tremolo strokes less steep in any case except crossStaffBeam…
Browse files Browse the repository at this point in the history
…Between() (+ collect_artifacts)

The case of two chords having the same `up()` value is already taken care of in the usage of `extendedStemLenWithTwoNoteTremolo()`.
  • Loading branch information
Harmoniker1 committed Feb 22, 2020
1 parent 34b2f4a commit 42820ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/tremolo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ void Tremolo::layoutTwoNotesTremolo(qreal x, qreal y, qreal h, qreal _spatium)
}
QTransform shearTransform;
qreal dy = y2 - y1;
if (_chord1->up() != _chord2->up() && !crossStaffBeamBetween())
dy = qMin(qMax(dy, -1.0), 1.0);
qreal dx = x2 - x1;
qreal ds = dy / dx;
if (_chord1->beams() == 0 && _chord2->beams() == 0) {
Expand Down

0 comments on commit 42820ca

Please sign in to comment.