]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/auto-beam-engraver.cc
release: 1.2.13
[lilypond.git] / lily / auto-beam-engraver.cc
index c6177c5f7a6725338621e9d625f6abf6c0440647..28fc85fa650606da1c1123fda1369a11f689375c 100644 (file)
@@ -203,8 +203,16 @@ Auto_beam_engraver::create_beam_p ()
   /* urg, copied from Beam_engraver */
   Scalar prop = get_property ("beamslopedamping", 0);
   if (prop.isnum_b ()) 
-    beam_p->set_elt_property (damping_scm_sym, gh_int2scm( prop));
+    beam_p->set_elt_property (damping_scm_sym, gh_int2scm(prop));
 
+  prop = get_property ("autoKneeGap", 0);
+  if (prop.isnum_b ()) 
+    beam_p->set_elt_property (auto_knee_gap_scm_sym, gh_int2scm(prop));
+
+  prop = get_property ("autoInterstaffKneeGap", 0);
+  if (prop.isnum_b ()) 
+    beam_p->set_elt_property (auto_interstaff_knee_gap_scm_sym, gh_int2scm( prop));
+      
   prop = get_property ("beamquantisation", 0);
   if (prop.isnum_b ()) 
     beam_p->quantisation_ = (Beam::Quantisation)(int)prop;
@@ -297,15 +305,15 @@ Auto_beam_engraver::acknowledge_element (Score_element_info info)
     {
       if (Beam *b = dynamic_cast<Beam *> (info.elem_l_))
        {
-         junk_beam ();
+         end_beam ();
        }
       else if (Chord_tremolo *b = dynamic_cast<Chord_tremolo*> (info.elem_l_))
        {
-         junk_beam ();
+         end_beam ();
        }
       else if (Bar *b = dynamic_cast<Bar *> (info.elem_l_))
        {
-         junk_beam ();
+         end_beam ();
        }
       else if (Rest* rest_l = dynamic_cast<Rest *> (info.elem_l_))
        {