#include <math.h>
#include "config.h"
+#include "warn.hh"
#include "libc-extension.hh"
#include "bezier.hh"
{
Axis other = Axis ((a +1)%NO_AXES);
Array<Real> ts = solve_point (a, x);
+
+ if (ts.size () == 0)
+ {
+ programming_error ("No solution found for Bezier intersection.");
+ return 0.0;
+ }
Offset c = curve_point (ts[0]);
assert (fabs (c[a] - x) < 1e-8);
{
set_mus_property ("list",
gh_append2( music_list(), gh_cons (m->self_scm (), SCM_EOL)));
+ scm_unprotect_object (m->self_scm ());
}
+
Music_sequence::Music_sequence(SCM h)
{
set_mus_property ("list", h);
Music_wrapper::Music_wrapper(Music*p)
{
set_mus_property ("element", p->self_scm ());
+ scm_unprotect_object (p->self_scm ());
}
Moment
what_str_ = what;
set_mus_property ("one", f->self_scm ());
set_mus_property ("two", s->self_scm ());
-}
+ scm_unprotect_object (f->self_scm());
+ scm_unprotect_object (s->self_scm());
+}
void
Part_combine_music::transpose (Musical_pitch p)