]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rest.cc
release: 0.0.44
[lilypond.git] / lily / rest.cc
index 39347b1d5bc1f7bf8628d3ab8818a2b0bf3d134d..97f91a6a6a44d5613fd268acb17ede3ef1a06d8f 100644 (file)
@@ -1,15 +1,24 @@
+/*
+  rest.cc -- implement Rest
+
+  source file of the LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+#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;
 }