X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbezier-bow.cc;h=e3707c13909d7b64a9efbd1a186ce14b92d7ddf5;hb=dd237d4df77489170dc5c204a9ba58819a904dfa;hp=e744219bd0c00408f96fca4a97e727c4ef6f0a04;hpb=eb72c0f066957c3e71d336db0f72814e34d3964d;p=lilypond.git diff --git a/lily/bezier-bow.cc b/lily/bezier-bow.cc index e744219bd0..e3707c1390 100644 --- a/lily/bezier-bow.cc +++ b/lily/bezier-bow.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2005 Jan Nieuwenhuizen + (c) 1998--2009 Jan Nieuwenhuizen */ #include "misc.hh" @@ -63,27 +63,27 @@ slur_height (Real width, Real h_inf, Real r_0) slurs. For large slurs, this gives a certain hookiness at the end, so we increase the indent. - indent = G(w) + indent = G (w) - w -> 0, G(w) -> .33 w + w -> 0, G (w) -> .33 w (due to derivative constraints, we cannot have indent > len/3) - w -> inf, G(w) -> 2*h_inf + w -> inf, G (w) -> 2*h_inf i.e. - G(0) = 0 , G'(0) 1/3, G(infty) = 2h_inf + G (0) = 0 , G'(0) 1/3, G (infty) = 2h_inf solve from - G(w) = r + p/(w+q) + G (w) = r + p/(w+q) yields - G(w) = 2 h_inf - max_fraction * q^2/ (w + q) + G (w) = 2 h_inf - max_fraction * q^2/ (w + q) with q = 2 h_inf */