]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/bezier-bow.hh
2003 -> 2004
[lilypond.git] / lily / include / bezier-bow.hh
index 75acd8e471e9b91f406b4bf87c94cea6bff7a170..26d1cd85e8f6120432a519921b5e16e2debef2c0 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
 
 #include "bezier.hh"
 #include "lily-proto.hh"
+#include "lily-guile.hh"
 
 
-/**
-  Implement bow specific bezier curve
- */
-class Bezier_bow
-{
-public:
-  Bezier_bow (Paper_def* paper_l);
-
-  /**
-   Calculate bezier curve for bow from bow paratime_signatures.
-   */
-  void blow_fit ();
-  void calc ();
-  Real calc_f (Real height);
-  void calc_bezier ();
-  bool calc_clipping ();
-  void calc_controls ();
-  void check_sanity () const;
-  void calc_default (Real h);
-  void calc_return (Real begin_alpha, Real end_alpha);
-  void calc_tangent_controls ();
-  bool check_fit_b () const;
-  Real check_fit_f () const;
-  void set (Array<Offset> points, Direction dir);
-  void transform ();
-  void transform_back ();
-
-  Array<Offset> encompass_;
-
-  Paper_def* paper_l_;
-  Direction dir_;
-  Real alpha_;
-  Offset origin_;
-
-
-  Bezier curve_;
-  Bezier return_;
-};
+
+Bezier slur_shape (Real width, Real height_limit,
+                  Real height_proportion);
+Real slur_height (Real width, Real height_limit, Real height_proportion); 
 
 
 #endif /* BEZIER_BOW_HH */