X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftuplet-engraver.cc;h=4c67c67f112f8143534c0c4f1979bdb5dc4a8a9a;hb=bd621ce77744a56b6d70ddd9eeae88ead5e7ffe4;hp=68313e84922799f4d387cff66c31b83c1a730b47;hpb=cb848a8d9505c9be2d6586872afd8406a358a0f7;p=lilypond.git diff --git a/lily/tuplet-engraver.cc b/lily/tuplet-engraver.cc index 68313e8492..4c67c67f11 100644 --- a/lily/tuplet-engraver.cc +++ b/lily/tuplet-engraver.cc @@ -3,12 +3,12 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2002 Han-Wen Nienhuys + (c) 1998--2003 Han-Wen Nienhuys */ -#include "command-request.hh" + #include "tuplet-bracket.hh" #include "note-column.hh" #include "time-scaled-music.hh" @@ -23,7 +23,7 @@ public: TRANSLATOR_DECLARATIONS(Tuplet_engraver); protected: - Link_array time_scaled_musics_; + Link_array time_scaled_musics_; /// when does the scaled music stop? Array order is synced with time_scaled_musics_ Array stop_moments_; /// when does the current spanner stop? Array order is synced with time_scaled_musics_ @@ -40,21 +40,15 @@ protected: }; bool -Tuplet_engraver::try_music (Music *r) +Tuplet_engraver::try_music (Music *c) { -#if 1 - if (Time_scaled_music * c = dynamic_cast (r)) - { - Music *el = c->element (); -#else - if (r->is_mus_type ("time-scaled-music")) + if (c->is_mus_type ("time-scaled-music")) { Music *el = unsmob_music (c->get_mus_property ("element")); -#endif - if (!dynamic_cast (el)) + if (el && !el->is_mus_type ("event-chord")) { time_scaled_musics_.push (c); - Rational m = now_mom ().main_part_ + c->length_mom ().main_part_; + Rational m = now_mom ().main_part_ + c->get_length ().main_part_; stop_moments_.push (m); SCM s = get_property ("tupletSpannerDuration");