X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frest.cc;h=97f91a6a6a44d5613fd268acb17ede3ef1a06d8f;hb=8309cbcd6660ea1f0b35abacbb424ddc4158e448;hp=39347b1d5bc1f7bf8628d3ab8818a2b0bf3d134d;hpb=dbed556ca13bc2371e83774890eaa06bc8b04def;p=lilypond.git diff --git a/lily/rest.cc b/lily/rest.cc index 39347b1d5b..97f91a6a6a 100644 --- a/lily/rest.cc +++ b/lily/rest.cc @@ -1,15 +1,24 @@ +/* + rest.cc -- implement Rest + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ +#include "duration.hh" #include "rest.hh" #include "dimen.hh" #include "debug.hh" #include "paper-def.hh" #include "lookup.hh" #include "molecule.hh" +#include "rest.hh" - -Rest::Rest(int t, int d) +Rest::Rest(Duration d) { - balltype = t; - dots = d; + balltype = d.type_i_; + dots = d.dots_i_; + pos_i_ = 0; } @@ -37,6 +46,7 @@ Rest::brew_molecule_p()const dm.add(Atom(d)); m->add_right(dm); } + m->translate(Offset(0,pos_i_ * paper()->internote())); return m; }