]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/bow.cc
release: 0.0.77.jcn1
[lilypond.git] / lily / bow.cc
index 5e463408e125c3a8c36a55df147d1ba654700101..46707624af26701f6b3dce61f1d6d756832fcf12 100644 (file)
@@ -1,13 +1,14 @@
 /*
   bow.cc -- implement Bow
 
-  source file of the LilyPond music typesetter
+  source file of the GNU LilyPond music typesetter
 
   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
 */
 
 #include "bow.hh"
 #include "paper-def.hh"
+#include "molecule.hh"
 #include "lookup.hh"
 
 Bow::Bow()
@@ -24,9 +25,10 @@ Bow::center() const
 
     Real w = width().length();
 
-    return Offset(w/2,dy * paper()->internote());
+    return Offset(w/2,dy * paper()->internote_f());
 }
 
+
 Molecule*
 Bow::brew_molecule_p() const
 {
@@ -36,7 +38,7 @@ Bow::brew_molecule_p() const
     int dy = right_pos_i_ - left_pos_i_;
     
     Real nw_f = paper()->note_width();
-    Real nh_f = paper()->internote();
+    Real nh_f = paper()->internote_f();
 
     
     w+= (right_dx_f_ - left_dx_f_) * nw_f ;
@@ -53,4 +55,5 @@ Bow::brew_molecule_p() const
     return output;
 }
 
-IMPLEMENT_STATIC_NAME(Bow);
+
+IMPLEMENT_IS_TYPE_B1(Bow,Directional_spanner);