-/*
- should add optional args
- */
-
-LY_DEFINE(make_pitch, "make-pitch", 3, 0, 0,
- (SCM o, SCM n, SCM a),
- "
-@var{octave} is specified by an integer, zero for the octave containing
-middle C. @var{note} is a number from 0 to 6, with 0 corresponding to C
-and 6 corresponding to B. The shift is zero for a natural, negative for
-flats, or positive for sharps.
-
-")
-{
- SCM_ASSERT_TYPE(gh_number_p(o), o, SCM_ARG1, __FUNCTION__, "number");
- SCM_ASSERT_TYPE(gh_number_p(n), n, SCM_ARG2, __FUNCTION__, "number");
- SCM_ASSERT_TYPE(gh_number_p(a), a, SCM_ARG3, __FUNCTION__, "number");
-
- Pitch p (gh_scm2int (o), gh_scm2int (n), gh_scm2int (a));
- return p.smobbed_copy ();
-}
-
-
-LY_DEFINE(pitch_octave, "pitch-octave", 1, 0, 0,
- (SCM pp),
- "extract the octave from pitch @var{p}.")
-{
- Pitch *p = unsmob_pitch (pp);
- SCM_ASSERT_TYPE(p, pp, SCM_ARG1, __FUNCTION__, "Pitch");
- int q = p->octave_i ();
-
- return gh_int2scm (q);
-}
-
-LY_DEFINE(pitch_alteration, "pitch-alteration", 1, 0, 0,
- (SCM pp),
- "extract the alteration from pitch @var{p}.")
-{
- Pitch *p = unsmob_pitch (pp);
- SCM_ASSERT_TYPE(p, pp, SCM_ARG1, __FUNCTION__, "Pitch");
- int q = p->alteration_i ();
-
- return gh_int2scm (q);
-}
-
-LY_DEFINE(pitch_notename, "pitch-notename", 1, 0, 0,
- (SCM pp),
- "extract the note name from pitch @var{pp}.")