]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/beam.cc
release: 1.3.44
[lilypond.git] / lily / beam.cc
index dfc960c3a491b46028d2ec58cc135a733d099704..027a08d70f0499b37ee6b50296c2fe31d8260470 100644 (file)
     * less hairy code
     * move paper vars to scm
 
+
+    remove *-hs variables.
+    
 */
 
 
 #include <math.h>              // tanh.
-
 #include "directional-element-interface.hh"
 #include "beaming.hh"
 #include "dimensions.hh"
 #include "staff-symbol-referencer.hh"
 #include "cross-staff.hh"
 
-
 Beam::Beam ()
 {
   Group_interface g (this, "stems");
   g.set_interface ();
+
+  set_elt_property ("height", gh_int2scm (0)); // ugh.
+  set_elt_property ("y-position" ,gh_int2scm (0));
 }
 
 void
@@ -269,7 +273,7 @@ Beam::after_line_breaking ()
 {
   /* first, calculate y, dy */
   Real y, dy;
-  calc_position_and_height (&y, &dy);
+  calc_default_position_and_height (&y, &dy);
   if (visible_stem_count ())
     {
       if (suspect_slope_b (y, dy))
@@ -337,9 +341,10 @@ Beam::after_line_breaking ()
   See Documentation/tex/fonts.doc
  */
 void
-Beam::calc_position_and_height (Real* y, Real* dy) const
+Beam::calc_default_position_and_height (Real* y, Real* dy) const
 {
-  *y = *dy = 0;
+  *y = 0;
+  *dy = 0;  
   if (visible_stem_count () <= 1)
     return;
 
@@ -770,8 +775,6 @@ Beam::forced_stem_count () const
   return f;
 }
 
-
-
 /*
   TODO: Fix this class. This is wildly inefficient.
   And it sux.  Yet another array/list 'interface'.
@@ -795,8 +798,6 @@ Beam::stem_top () const
   SCM s = get_elt_property ("stems");
   
   return gh_pair_p (s) ? dynamic_cast<Stem*> (unsmob_element (gh_car (s))) : 0;
-    
-  //Group_interface__extract_elements ((Beam*) this, (Stem*) 0, "stems")[stem_count () - 1];
 }
 
 /* burp */