]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.13
authorfred <fred>
Mon, 2 Dec 1996 00:54:42 +0000 (00:54 +0000)
committerfred <fred>
Mon, 2 Dec 1996 00:54:42 +0000 (00:54 +0000)
src/melodicstaff.cc

index 712ffb7e5f2453ac6cc34bac17e4c92b43002086..a0c0b2e46f53e6628398f344c810d318f0894d33 100644 (file)
@@ -9,6 +9,7 @@
 #include "rhythmstaff.hh"
 #include "sccol.hh" 
 #include "localkeyitem.hh"
+#include "request.hh"
 
 const int NO_LINES=5;
 
@@ -60,7 +61,14 @@ get_new_melodicstaff()
     return new Melodic_staff;
 }
 
-
+Rest*
+Melodic_staff::get_rest(Rest_req*rq)
+{
+    Rest*r = Simple_staff::get_rest(rq);
+    if (rq->balltype <= 2)
+       r->translate(Offset(0, NO_LINES * paper()->internote()));
+    return r;
+}
 
 Melodic_staff*
 Melodic_staff::clone()const