]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-tremolo.cc
release: 1.3.92
[lilypond.git] / lily / stem-tremolo.cc
index e2cd5c6b2c3bea76ca2dcbce2608ed8a458d2bd8..11e2441645fee3f7c424308745275c049058e5fc 100644 (file)
 void
 Stem_tremolo::set_interface (Score_element *me)
 {
+  me->set_interface (ly_symbol2scm ("stem-tremolo"));
+}
+
+bool
+Stem_tremolo::has_interface (Score_element *me)
+{
+  return me->has_interface (ly_symbol2scm ("stem-tremolo"));
 }
 
 
@@ -78,7 +85,11 @@ Stem_tremolo::brew_molecule (SCM smob)
     tremolo_flags = 1;
 
   int mult = beam ? Beam::get_multiplicity (beam) : 0;
-  Real interbeam_f = me->paper_l ()->interbeam_f (mult);
+  SCM space_proc = me->get_elt_property ("beam-space-function");
+  SCM space = gh_call1 (space_proc, gh_int2scm (mult));
+  Real interbeam_f = gh_scm2double (space) * ss;
+
+
   Molecule mol; 
   for (int i = 0; i < tremolo_flags; i++)
     {