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 ()
23 Rhythmic_head::do_add_processing ();
24 if (dots_l_ && balltype_i_ > 4)
26 dots_l_->position_i_ = position_i_ + 3;
28 dots_l_->position_i_++;
38 Rest::do_brew_molecule_p () const
42 if (balltype_i_ == 0 || balltype_i_ == 1)
43 ledger_b = abs(position_i_ - (2* balltype_i_ - 1)) > lines_i ();
48 SCM style_sym =get_elt_property (style_scm_sym);
49 if (style_sym != SCM_BOOL_F)
51 style = ly_scm2string (SCM_CDR(style_sym));
54 Molecule s(lookup_l ()->rest (balltype_i_, ledger_b, style));
55 Molecule * m = new Molecule ( Molecule (s));
56 m->translate_axis (position_i_ * staff_line_leading_f ()/2.0, Y_AXIS);