+LY_DEFINE (ly_make_spring, "ly:make-spring",
+ 2, 0, 0, (SCM ideal, SCM min_dist),
+ "Make a spring. @var{ideal} is the ideal distance of the"
+ " spring, and @var{min-dist} is the minimum distance.")
+{
+ LY_ASSERT_TYPE (scm_is_number, ideal, 1);
+ LY_ASSERT_TYPE (scm_is_number, min_dist, 2);
+
+ Spring s (scm_to_double (ideal), scm_to_double (min_dist));
+
+ return s.smobbed_copy ();