X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpiano-pedal-engraver.cc;h=c976863e02ca85b256e5e721afcf0b300cd8042d;hb=4b4331d24c2c39592f2da381156da92d140c9419;hp=4cbc7adbd320abd22cd789ac0b584bfa8b30b9bf;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/piano-pedal-engraver.cc b/lily/piano-pedal-engraver.cc index 4cbc7adbd3..c976863e02 100644 --- a/lily/piano-pedal-engraver.cc +++ b/lily/piano-pedal-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2000--2011 Jan Nieuwenhuizen , + Copyright (C) 2000--2012 Jan Nieuwenhuizen , Erik Sandberg Chris Jackson - extended to support @@ -126,7 +126,6 @@ protected: DECLARE_TRANSLATOR_LISTENER (sustain); DECLARE_TRANSLATOR_LISTENER (una_corda); DECLARE_TRANSLATOR_LISTENER (sostenuto); - DECLARE_ACKNOWLEDGER (note_column); void stop_translation_timestep (); void process_music (); @@ -206,22 +205,6 @@ Piano_pedal_engraver::initialize () info_list_[NUM_PEDAL_TYPES].type_ = 0; } -/* - Urg: Code dup - I'm a script -*/ -void -Piano_pedal_engraver::acknowledge_note_column (Grob_info info) -{ - for (Pedal_info *p = info_list_; p->type_; p++) - { - if (p->bracket_) - add_bound_item (p->bracket_, info.grob ()); - if (p->finished_bracket_) - add_bound_item (p->finished_bracket_, info.grob ()); - } -} - IMPLEMENT_TRANSLATOR_LISTENER (Piano_pedal_engraver, sostenuto); void Piano_pedal_engraver::listen_sostenuto (Stream_event *ev) @@ -364,9 +347,7 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed) assert (!p->finished_bracket_); Grob *cmc = unsmob_grob (get_property ("currentMusicalColumn")); - - if (!p->bracket_->get_bound (RIGHT)) - p->bracket_->set_bound (RIGHT, cmc); + p->bracket_->set_bound (RIGHT, cmc); /* Set properties so that the stencil-creating function will @@ -464,9 +445,7 @@ Piano_pedal_engraver::stop_translation_timestep () if (p->bracket_ && !p->bracket_->get_bound (LEFT)) { Grob *cmc = unsmob_grob (get_property ("currentMusicalColumn")); - - if (!p->bracket_->get_bound (LEFT)) - p->bracket_->set_bound (LEFT, cmc); + p->bracket_->set_bound (LEFT, cmc); } } @@ -500,8 +479,6 @@ Piano_pedal_engraver::typeset_all (Pedal_info *p) } } -ADD_ACKNOWLEDGER (Piano_pedal_engraver, note_column); - ADD_TRANSLATOR (Piano_pedal_engraver, /* doc */ "Engrave piano pedal symbols and brackets.",