]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/beam.cc
(stop_translation_timestep):
[lilypond.git] / lily / beam.cc
index 4c5f743030bb52eccd90edf094bb3f2a262a2f8c..60b6944a804bc5f5b4889c527f4dbe61f9984267 100644 (file)
@@ -83,8 +83,16 @@ Real
 Beam::get_beam_translation (Grob *me)
 {
   SCM func = me->get_grob_property ("space-function");
-  SCM s = gh_call2 (func, me->self_scm (), scm_int2num (get_beam_count (me)));
-  return gh_scm2double (s);
+
+  if (gh_procedure_p (func))
+    {
+      SCM s = gh_call2 (func, me->self_scm (), scm_int2num (get_beam_count (me)));
+      return gh_scm2double (s);
+    }
+  else
+    {
+      return 0.81;
+    }
 }
 
 /* Maximum beam_count. */