]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-guile.cc
mutopia move
[lilypond.git] / lily / lily-guile.cc
index 8e31e897e673354fb3980c18d94cffcfa2840541..69990c82b1015e7253c3c2623afd3fc9d4e3c08a 100644 (file)
@@ -797,3 +797,18 @@ display_list (SCM s)
   scm_puts (")", p);
   return SCM_UNSPECIFIED;
 }
+
+Slice
+int_list_to_slice (SCM l)
+{
+  Slice s;
+  s.set_empty ();
+  for (; gh_pair_p (l); l = gh_cdr (l))
+    {
+      if (gh_number_p (gh_car (l)))
+       s.add_point (gh_scm2int (gh_car (l))); 
+    }
+
+  return s;
+}
+