X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fbreathing-sign.cc;h=3c32a766d22b30ea83458efb79e93a087694364e;hb=481e336f410e933bea8705862743fc078ccb49f7;hp=f8d02996f49a564f90d1d2e3bff3a4870239b689;hpb=243dab36d0ec9b8942b64d582366e56e4630c069;p=lilypond.git diff --git a/lily/breathing-sign.cc b/lily/breathing-sign.cc index f8d02996f4..3c32a766d2 100644 --- a/lily/breathing-sign.cc +++ b/lily/breathing-sign.cc @@ -1,13 +1,13 @@ /* breathing_sign.cc -- implement Breathing_sign - (c) 1999--2006 Michael Krause + (c) 1999--2007 Michael Krause written for the GNU LilyPond music typesetter TODO: --> see breathing-sign-engraver.cc - Extensions for ancient notation (c) 2003--2006 by Juergen Reuter + Extensions for ancient notation (c) 2003--2007 by Juergen Reuter */ #include "breathing-sign.hh" @@ -20,6 +20,7 @@ #include "direction.hh" #include "text-interface.hh" #include "font-interface.hh" +#include "grob.hh" /* TODO: thickness should be a grob property (unit: linethickness) @@ -40,14 +41,9 @@ Breathing_sign::divisio_minima (SCM smob) { Grob *me = unsmob_grob (smob); Real staff_space = Staff_symbol_referencer::staff_space (me); - Real staff_size; Real thickness = Staff_symbol_referencer::line_thickness (me); thickness *= robust_scm2double (me->get_property ("thickness"), 1.0); - if (Staff_symbol_referencer::get_staff_symbol (me)) - staff_size = (Staff_symbol_referencer::line_count (me) - 1) * staff_space; - else - staff_size = 0.0; Real blotdiameter = me->layout ()->get_dimension (ly_symbol2scm ("blot-diameter")); @@ -178,7 +174,7 @@ Breathing_sign::offset_callback (SCM smob) return scm_from_double (inter * sz * d); } -ADD_INTERFACE (Breathing_sign, "breathing-sign-interface", +ADD_INTERFACE (Breathing_sign, "A breathing sign.", "direction "