From: fred Date: Tue, 26 Mar 2002 21:50:21 +0000 (+0000) Subject: lilypond-1.1.48 X-Git-Tag: release/1.5.59~2411 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=83210881d7ef201291c7800c6f55f2a8054fc971;p=lilypond.git lilypond-1.1.48 --- diff --git a/lily/auto-beam-engraver.cc b/lily/auto-beam-engraver.cc index 4e383675d7..07cd63aa6c 100644 --- a/lily/auto-beam-engraver.cc +++ b/lily/auto-beam-engraver.cc @@ -22,7 +22,6 @@ ADD_THIS_TRANSLATOR (Auto_beam_engraver); Auto_beam_engraver::Auto_beam_engraver () { stem_l_arr_p_ = 0; - //shortest_mom_ = 1; shortest_mom_ = Moment (1, 8); finished_beam_p_ = 0; finished_grouping_p_ = 0; @@ -156,7 +155,6 @@ Auto_beam_engraver::consider_end_and_begin () void Auto_beam_engraver::begin_beam () { - // DOUT << String ("starting autobeam at: ") + now_mom ().str () + "\n"; assert (!stem_l_arr_p_); stem_l_arr_p_ = new Array; assert (!grouping_p_); @@ -198,7 +196,6 @@ Auto_beam_engraver::end_beam () delete stem_l_arr_p_; stem_l_arr_p_ = 0; grouping_p_ = 0; - //shortest_mom_ = 1; shortest_mom_ = Moment (1, 8); } } @@ -310,8 +307,6 @@ Auto_beam_engraver::acknowledge_element (Score_element_info info) } grouping_p_->add_child (start, rhythmic_req->length_mom ()); - //stem_l->flag_i_ = rhythmic_req->duration_.durlog_i_; - stem_l_arr_p_->push (stem_l); Moment now = now_mom (); last_add_mom_ = now; @@ -331,7 +326,6 @@ Auto_beam_engraver::junk_beam () stem_l_arr_p_ = 0; delete grouping_p_; grouping_p_ = 0; - //shortest_mom_ = 1; shortest_mom_ = Moment (1, 8); } diff --git a/lily/slur.cc b/lily/slur.cc index 5d04e5fae8..580974a888 100644 --- a/lily/slur.cc +++ b/lily/slur.cc @@ -316,28 +316,34 @@ Slur::get_encompass_offset_arr () const int first = 1; int last = encompass_arr_.size () - 1; + + Array notes; + notes.push (Offset (0,0)); + // prebreak if (broken_edge_b (RIGHT)) last++; - + else + { + Encompass_info info (encompass_arr_.top (), dir_, this); + d[Y_AXIS] += info.interstaff_f_; + } + // postbreak if (broken_edge_b (LEFT)) first--; + else + { + Encompass_info info (encompass_arr_[0], dir_, this); + notes[0][Y_AXIS] += info.interstaff_f_; + } - Array notes; - notes.push (Offset (0,0)); - - Real dy =0.0; - for (int i = 0; i < last; i++) + for (int i = first; i < last; i++) { Encompass_info info (encompass_arr_[i], dir_, this); - if (i >= first) - notes.push (info.o_ - left); - else - dy = info.interstaff_f_; + notes.push (info.o_ - left); } - notes[0][Y_AXIS] += dy; notes.push (d); return notes;