2 rest.cc -- implement Rest
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "paper-def.hh"
14 #include "axis-group-element.hh"
18 Rest::do_add_processing ()
20 if (balltype_i_ != 0 && balltype_i_ != 1)
23 Rhythmic_head::do_add_processing ();
25 dots_l_->position_i_ = position_i_;
34 Rest::brew_molecule_p () const
36 int staff_size_i_ = 8;
37 bool streepjes_b = abs(position_i_) > staff_size_i_ /2 && (balltype_i_ == 0 || balltype_i_ == 1);
39 Atom s(paper ()->lookup_l()->rest (balltype_i_, streepjes_b));
40 Molecule * m = new Molecule ( Atom (s));
41 m->translate_axis (position_i_ * paper ()->internote_f (), Y_AXIS);
45 IMPLEMENT_IS_TYPE_B1(Rest, Rhythmic_head);