]> git.donarmstrong.com Git - lilypond.git/blobdiff - src/notehead.cc
release: 0.0.30
[lilypond.git] / src / notehead.cc
index f6521a58fed326c2032ff5d17cdfd8b0b7b8cf52..d96b4d0599b076dcdea3d27f8ea130e2170ad73f 100644 (file)
@@ -5,7 +5,9 @@
 #include "paper.hh"
 #include "lookup.hh"
 #include "molecule.hh"
+#include "request.hh"
 
+NAME_METHOD(Notehead);
 
 Notehead::Notehead(int ss)
 {
@@ -15,15 +17,24 @@ Notehead::Notehead(int ss)
     balltype = 0;
     dots = 0;
     extremal = 0;
+    defined_ch_c_l_m = 0;
 }
 
 void
-Notehead::print()const
+Notehead::set_rhythmic(Rhythmic_req*r_req_l)
+{
+    balltype = r_req_l->balltype;
+    dots = r_req_l->dots;
+    if ( r_req_l->defined_ch_c_l_m )
+       defined_ch_c_l_m = r_req_l->defined_ch_c_l_m;
+}
+    
+void
+Notehead::do_print()const
 {
 #ifndef NPRINT
-    mtor << "Head "<< balltype << ", position = "<< position
+    mtor << "balltype "<< balltype << ", position = "<< position
         << "dots " << dots;
-    Item::print();
 #endif
 }
 
@@ -35,7 +46,7 @@ Notehead::compare(Notehead*&a, Notehead*&b)
 }
 
 Molecule*
-Notehead::brew_molecule() const return out;
+Notehead::brew_molecule_p() const return out;
 {
     Paperdef *p = paper();
 
@@ -64,7 +75,6 @@ Notehead::brew_molecule() const return out;
        out->add(sm);       
     }
     
-
     out->translate(Offset(0,dy*position));
 }