#include "lookup.hh"
#include "dimensions.hh"
#include "direction.hh"
-#include "text-item.hh"
+#include "text-interface.hh"
#include "font-interface.hh"
/*
TODO: thickness should be a grob property (unit: linethickness)
- rather than hardwired to (staff_space / 6).
- */
-
-
+ rather than hardwired to (staff_space / 6).
+*/
/*
UGH : this is full of C&P code. Consolidate! --hwn
/*
Gregorian chant divisio minima. (Actually, this was the original
breathing sign by Michael. -- jr)
- */
+*/
MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_minima, 1);
-SCM
+SCM
Breathing_sign::divisio_minima (SCM smob)
{
Grob *me = unsmob_grob (smob);
/*
Gregorian chant divisio maior.
- */
+*/
MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_maior, 1);
-SCM
+SCM
Breathing_sign::divisio_maior (SCM smob)
{
Grob *me = unsmob_grob (smob);
/*
Gregorian chant divisio maxima.
- */
+*/
MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_maxima, 1);
-SCM
+SCM
Breathing_sign::divisio_maxima (SCM smob)
{
Grob *me = unsmob_grob (smob);
/*
Gregorian chant finalis.
- */
+*/
MAKE_SCHEME_CALLBACK (Breathing_sign, finalis, 1);
-SCM
+SCM
Breathing_sign::finalis (SCM smob)
{
Grob *me = unsmob_grob (smob);
Breathing_sign::offset_callback (SCM element_smob, SCM)
{
Grob *me = unsmob_grob (element_smob);
-
+
Direction d = get_grob_direction (me);
if (!d)
{
set_grob_direction (me, d);
}
- Real inter_f = Staff_symbol_referencer::staff_space (me)/2;
- int sz = Staff_symbol_referencer::line_count (me)-1;
- return scm_make_real (inter_f * sz * d);
+ Real inter_f = Staff_symbol_referencer::staff_space (me) / 2;
+ int sz = Staff_symbol_referencer::line_count (me) - 1;
+ return scm_from_double (inter_f * sz * d);
}
ADD_INTERFACE (Breathing_sign, "breathing-sign-interface",
- "A breathing sign.",
- "direction");
+ "A breathing sign.",
+ "direction");