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"
15 #include "paper-score.hh"
18 Rest::do_add_processing ()
23 Rhythmic_head::do_add_processing ();
27 Rest::do_post_processing ()
29 Rhythmic_head::do_post_processing ();
30 if (dots_l_ && balltype_i_ > 4)
32 dots_l_->position_i_ += 3;
34 dots_l_->position_i_++;
44 Rest::do_brew_molecule_p () const
48 if (balltype_i_ == 0 || balltype_i_ == 1)
49 ledger_b = abs(position_f () - (2* balltype_i_ - 1)) > lines_i ();
54 SCM style_sym =get_elt_property (style_scm_sym);
55 if (style_sym != SCM_BOOL_F)
57 style = ly_scm2string (SCM_CDR(style_sym));
60 Molecule s(lookup_l ()->rest (balltype_i_, ledger_b, style));
61 Molecule * m = new Molecule ( Molecule (s));