Skip to content

Commit

Permalink
Merge pull request #129 from elerouxx/feathered_beams
Browse files Browse the repository at this point in the history
fix #18548: Feathered Beam broken
  • Loading branch information
lasconic committed Nov 21, 2012
2 parents 37f118a + ff0be47 commit 681a991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1788,9 +1788,11 @@ void Beam::layout2(QList<ChordRest*>crl, SpannerSegmentType, int frag)
x2 += stemWidth;
x3 = x2 + len;
}
//feathered beams
qreal yo = py1 + bl * _beamDist * _grow1;
qreal yoo = py1 + bl * _beamDist * _grow2;
qreal ly1 = (x2 - x1) * slope + yo;
qreal ly2 = (x3 - x1) * slope + yo;
qreal ly2 = (x3 - x1) * slope + yoo;
if (!qIsFinite(x2) || !qIsFinite(ly1)
|| !qIsFinite(x3) || !qIsFinite(ly2)) {
qDebug("bad beam segment: slope %f", slope);
Expand Down
6 changes: 6 additions & 0 deletions mscore/inspector_beam.ui
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="singleStep">
<double>0.250000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
Expand All @@ -200,6 +203,9 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="singleStep">
<double>0.250000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
</property>
Expand Down

0 comments on commit 681a991

Please sign in to comment.