X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbezier-bow.cc;h=1e3bb2f517ba0de936371345ae873cf5015ab0cd;hb=df9112198bc2440558ef1a5517543494305dca9a;hp=fcc6df45f4ce1e898ec3167f244861a6a050dd8a;hpb=4ecdbd7d70ca7441be4dddd15ac01cc255bc2a35;p=lilypond.git diff --git a/lily/bezier-bow.cc b/lily/bezier-bow.cc index fcc6df45f4..1e3bb2f517 100644 --- a/lily/bezier-bow.cc +++ b/lily/bezier-bow.cc @@ -3,12 +3,9 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2005 Jan Nieuwenhuizen + (c) 1998--2007 Jan Nieuwenhuizen */ -#include -using namespace std; - #include "misc.hh" #include "bezier.hh" @@ -66,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 */