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)
#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"
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()
{
}
}
-Symbol
+Atom
Span_bar::get_bar_sym (Real dy) const
{
return paper()->lookup_l ()->bar (type_str_, dy);
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;