2 multi-measure-rest.cc -- implement Multi_measure_rest
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
10 #include "multi-measure-rest.hh"
12 #include "paper-def.hh"
16 #include "text-def.hh"
17 #include "molecule.hh"
21 Multi_measure_rest::Multi_measure_rest ()
27 Multi_measure_rest::do_print () const
29 DOUT << "measures_i_ " << measures_i_;
33 Multi_measure_rest::brew_molecule_p () const
37 * make real multi-measure rest symbol: |---|
38 * make two,four,eight-measure-rest symbols
41 Atom s (lookup_l ()->rest (0, 0));
42 Molecule* mol_p = new Molecule ( Atom (s));
43 Real interline_f = paper ()->interline_f ();
44 mol_p->translate_axis (interline_f, Y_AXIS);
49 text.text_str_ = to_str (measures_i_);
50 text.style_str_ = "number";
51 Atom s = text.get_atom (paper (), UP);
52 s.translate_axis (3.0 * interline_f, Y_AXIS);