]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4725 apply sign on orientation in make-bow-stencil
authorThomas Morley <thomasmorley65@gmail.com>
Wed, 6 Jan 2016 18:01:09 +0000 (19:01 +0100)
committerThomas Morley <thomasmorley65@gmail.com>
Fri, 15 Jan 2016 21:45:23 +0000 (22:45 +0100)
This avoids ambiguity with bow-height and thickness

scm/stencil.scm

index 5490e01c9c5b2e7723a40e58cd7dd9fa58c7e955..bda7e29a8f204aeb3d4fc3bce2670b1a4c90917a 100644 (file)
@@ -49,8 +49,6 @@ The higher the value of number @var{angularity}, the more angular the shape of
 the bow.
 @var{bow-height} determines the height of the bow.
 @var{orientation} determines, whether the bow is concave or convex.
-@var{orientation} should be set to @val{-1} or @val{1}, other values are
-possible but will affect the bow's height as well.
 Both variables are supplied to support independent usage.
 
 Done by calculating a horizontal unit-bow first, then moving all control-points
@@ -77,9 +75,9 @@ Limitation: s-curves are currently not supported.
           ;;;; (1) calculate control-points for the horizontal unit-bow,
                ;; y-values for 2nd/3rd control-points
                (outer-control
-                 (* 4/3 orientation (/ bow-height length-to-print)))
+                 (* 4/3 (sign orientation) (/ bow-height length-to-print)))
                (inner-control
-                 (* orientation
+                 (* (sign orientation)
                     (- (abs outer-control) (/ thickness length-to-print))))
                ;; x-values for 2nd/3rd control-points depending on `angularity'
                (offset-index