X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftuplet-iterator.cc;h=c43e630c4384e51f4c0acf44a158918fb5467df8;hb=4d405ef96a8a62771d7d9a283ff5369a772e89d8;hp=80a75a9beb7ad2d8c64f14c66d12158b7e3e0089;hpb=c054eb280fd9953596eb164f67b0f9d5555c5a32;p=lilypond.git diff --git a/lily/tuplet-iterator.cc b/lily/tuplet-iterator.cc index 80a75a9beb..c43e630c43 100644 --- a/lily/tuplet-iterator.cc +++ b/lily/tuplet-iterator.cc @@ -24,6 +24,7 @@ #include "music.hh" #include "music-wrapper-iterator.hh" #include "stream-event.hh" +#include "lily-imports.hh" /* Iterates \times, by sending TupletSpanEvents at the start/end of each @@ -62,13 +63,12 @@ private: Music * Tuplet_iterator::create_event (Direction d) { - SCM ev_scm = scm_call_2 (ly_lily_module_constant ("make-span-event"), - ly_symbol2scm ("TupletSpanEvent"), - scm_from_int (d)); + SCM ev_scm = Lily::make_span_event (ly_symbol2scm ("TupletSpanEvent"), + scm_from_int (d)); Music *mus = get_music (); - Music *ev = Music::unsmob (ev_scm); + Music *ev = unsmob (ev_scm); ev->set_spot (*mus->origin ()); if (d == START) { @@ -128,10 +128,10 @@ Tuplet_iterator::process (Moment m) void Tuplet_iterator::construct_children () { - if (Duration *d = Duration::unsmob (get_music ()->get_property ("duration"))) + if (Duration *d = unsmob (get_music ()->get_property ("duration"))) spanner_duration_ = d->get_length (); else if (Moment *mp - = Moment::unsmob (get_outlet ()->get_property ("tupletSpannerDuration"))) + = unsmob (get_outlet ()->get_property ("tupletSpannerDuration"))) spanner_duration_ = mp->main_part_; else spanner_duration_.set_infinite (1);