2 rest.cc -- implement Rest
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 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::brew_molecule_p () const
40 int staff_size_i_
= 8;
41 bool streepjes_b
= abs(position_i_
) > staff_size_i_
/2 &&
42 (balltype_i_
== 0 || balltype_i_
== 1);
44 Atom
s(lookup_l ()->rest (balltype_i_
, streepjes_b
));
45 Molecule
* m
= new Molecule ( Atom (s
));
46 m
->translate_axis (position_i_
* paper ()->internote_f (), Y_AXIS
);