X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbeam-engraver.cc;h=00b9081b3e34889ed1d6cf26323b7d6efe3e3e2a;hb=aefc5a4057a0a61f1d7e4411cc1c5061d9aea6b7;hp=654a7f57d17293c0caf5144a4c5344f0eec3b772;hpb=4bb29573149a0ffa1f881c5e38a0fe68e9e76b67;p=lilypond.git diff --git a/lily/beam-engraver.cc b/lily/beam-engraver.cc index 654a7f57d1..00b9081b3e 100644 --- a/lily/beam-engraver.cc +++ b/lily/beam-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1998--2011 Han-Wen Nienhuys + Copyright (C) 1998--2012 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,7 @@ #include "spanner.hh" #include "stream-event.hh" #include "stem.hh" +#include "unpure-pure-container.hh" #include "warn.hh" #include "translator.icc" @@ -243,7 +244,10 @@ Beam_engraver::acknowledge_rest (Grob_info info) if (beam_ && !scm_is_number (info.grob ()->get_property_data ("staff-position"))) chain_offset_callback (info.grob (), - Beam::rest_collision_callback_proc, Y_AXIS); + ly_make_unpure_pure_container + (Beam::rest_collision_callback_proc, + Beam::pure_rest_collision_callback_proc), + Y_AXIS); } void @@ -268,7 +272,10 @@ Beam_engraver::acknowledge_stem (Grob_info info) } last_stem_added_at_ = now; - int durlog = unsmob_duration (ev->get_property ("duration"))->duration_log (); + + Duration *stem_duration = unsmob_duration (ev->get_property ("duration")); + int durlog = stem_duration->duration_log (); + //int durlog = unsmob_duration (ev->get_property ("duration"))->duration_log (); if (durlog <= 2) { ev->origin ()->warning (_ ("stem does not fit in beam")); @@ -287,7 +294,9 @@ Beam_engraver::acknowledge_stem (Grob_info info) Moment stem_location = now - beam_start_mom_ + beam_start_location_; beam_info_->add_stem (stem_location, max (durlog - 2, 0), - Stem::is_invisible (stem)); + Stem::is_invisible (stem), + stem_duration->factor (), + (stem->get_property ("tuplet-start") == SCM_BOOL_T)); Beam::add_stem (beam_, stem); }