From e5d6503b520168e5fc2dbdbc5ff50324e0179f9f Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:58:04 +0000 Subject: [PATCH] lilypond-0.1.15 --- lily/local-key-item.cc | 8 ++++---- lily/span-bar.cc | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lily/local-key-item.cc b/lily/local-key-item.cc index eab94bf659..65c5ad7253 100644 --- a/lily/local-key-item.cc +++ b/lily/local-key-item.cc @@ -76,12 +76,12 @@ Local_key_item::brew_molecule_p() const octmol= new Molecule; } lastoct = accs[i].octave_i_; - Symbol s =paper()->lookup_l ()->accidental (accs[i].accidental_i_); - Atom a (s); + Real dy = (accs[i].name_i_ + c0_position) * paper()->internote_f (); + Atom a (paper()->lookup_l ()->accidental (accs[i].accidental_i_)); a.translate (dy, Y_AXIS); - - octmol->add_at_edge (X_AXIS, RIGHT, a); + Molecule m(a); + octmol->add_at_edge (X_AXIS, RIGHT, m); } if (octmol) diff --git a/lily/span-bar.cc b/lily/span-bar.cc index e23b322678..d4bd26f0a9 100644 --- a/lily/span-bar.cc +++ b/lily/span-bar.cc @@ -9,7 +9,7 @@ #include "dimen.hh" #include "span-bar.hh" #include "lookup.hh" -#include "symbol.hh" +#include "atom.hh" #include "paper-def.hh" #include "molecule.hh" #include "vertical-align-elem.hh" @@ -55,8 +55,9 @@ Span_bar::set (Vertical_align_element *a) Interval Span_bar::do_width() const { - return paper()->lookup_l ()->bar (type_str_, 40 PT).dim.x (); // ugh + return paper()->lookup_l ()->bar (type_str_, 40 PT).dim_.x (); // ugh } + void Span_bar::do_pre_processing() { @@ -85,7 +86,7 @@ Span_bar::do_pre_processing() } } -Symbol +Atom Span_bar::get_bar_sym (Real dy) const { return paper()->lookup_l ()->bar (type_str_, dy); @@ -107,7 +108,7 @@ Span_bar::brew_molecule_p() const y_int.unite (y + spanning_l_arr_[i]->height()); } - Symbol s = get_bar_sym (y_int.length()); + Atom s = get_bar_sym (y_int.length()); Molecule*output = new Molecule (Atom (s)); output->translate (y_int[-1], Y_AXIS); return output; -- 2.39.5