X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fnotehead.cc;h=722b231e6837fa123c54f2a6383910cfac3401bb;hb=5d9f9a9c6ef58ed7c6ed2311f2bc4d75b8722469;hp=f6521a58fed326c2032ff5d17cdfd8b0b7b8cf52;hpb=c8374706587ab2ba89c9355efb0d926ae9a9eaef;p=lilypond.git diff --git a/src/notehead.cc b/src/notehead.cc index f6521a58fe..722b231e68 100644 --- a/src/notehead.cc +++ b/src/notehead.cc @@ -2,9 +2,11 @@ #include "notehead.hh" #include "dimen.hh" #include "debug.hh" -#include "paper.hh" +#include "paper-def.hh" #include "lookup.hh" #include "molecule.hh" +#include "musicalrequest.hh" + Notehead::Notehead(int ss) @@ -18,26 +20,32 @@ Notehead::Notehead(int ss) } void -Notehead::print()const +Notehead::set_rhythmic(Rhythmic_req*r_req_l) +{ + balltype = r_req_l->balltype; + dots = r_req_l->dots; +} + +void +Notehead::do_print()const { #ifndef NPRINT - mtor << "Head "<< balltype << ", position = "<< position + mtor << "balltype "<< balltype << ", position = "<< position << "dots " << dots; - Item::print(); #endif } int -Notehead::compare(Notehead*&a, Notehead*&b) +Notehead::compare(Notehead *const &a, Notehead * const &b) { return a->position - b->position; } Molecule* -Notehead::brew_molecule() const return out; +Notehead::brew_molecule_p() const return out; { - Paperdef *p = paper(); + Paper_def *p = paper(); Real dy = p->internote(); Symbol s = p->lookup_p_->ball(balltype); @@ -64,7 +72,6 @@ Notehead::brew_molecule() const return out; out->add(sm); } - out->translate(Offset(0,dy*position)); }