2 multi-measure-rest.cc -- implement Multi_measure_rest
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Jan Nieuwenhuizen <jan@digicash.com>
10 #include "multi-measure-rest.hh"
12 #include "paper-def.hh"
17 #include "text-def.hh"
18 #include "molecule.hh"
20 IMPLEMENT_IS_TYPE_B1 (Multi_measure_rest, Item);
22 Multi_measure_rest::Multi_measure_rest ()
28 Multi_measure_rest::do_print () const
30 DOUT << "measures_i_ " << measures_i_;
34 Multi_measure_rest::brew_molecule_p () const
38 * make real multi-measure rest symbol: |---|
39 * make two,four,eight-measure-rest symbols
42 Atom s (paper ()->lookup_l ()->rest (0, 0));
43 Molecule* mol_p = new Molecule ( Atom (s));
44 Real interline_f = paper ()->interline_f ();
45 mol_p->translate_axis (interline_f, Y_AXIS);
50 text.text_str_ = measures_i_;
51 text.style_str_ = "number";
52 Atom s = text.get_atom (paper (), UP);
53 s.translate_axis (3.0 * interline_f, Y_AXIS);