2 rest.cc -- implement Rest
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "paper-def.hh"
14 #include "axis-group-element.hh"
18 Rest::do_add_processing ()
22 else if (balltype_i_ == 0)
25 Rhythmic_head::do_add_processing ();
26 if (dots_l_ && balltype_i_ > 1)
28 dots_l_->position_i_ = position_i_ + 4;
38 Rest::do_brew_molecule_p () const
40 bool streepjes_b = abs(position_i_) > lines_i () / 2 &&
41 (balltype_i_ == 0 || balltype_i_ == 1);
43 Molecule s(lookup_l ()->rest (balltype_i_, streepjes_b));
44 Molecule * m = new Molecule ( Molecule (s));
45 m->translate_axis (position_i_ * staff_line_leading_f ()/2.0, Y_AXIS);