2 staffsym.cc -- implement Staff_symbol
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
8 #include "staff-sym.hh"
10 #include "paper-def.hh"
11 #include "molecule.hh"
16 Staff_symbol::Staff_symbol (int l)
22 IMPLEMENT_IS_TYPE_B1(Staff_symbol,Spanner);
25 Staff_symbol::do_print() const
29 DOUT << "lines: " << no_lines_i_;
34 Staff_symbol::brew_molecule_p() const
36 Paper_def * p = paper();
37 Atom rule = p->lookup_l ()->rule_symbol (p->get_var ("rule_thickness"),
39 Real inter = p->interline_f ();
40 Real height = (no_lines_i_-1) * inter/2;
41 Molecule * m = new Molecule;
42 for (int i=0; i < no_lines_i_; i++)
45 a.translate_axis (height - i * inter, Y_AXIS);
53 Staff_symbol::inter_note_f() const
55 return paper()->internote_f ();
59 Staff_symbol::steps_i() const