#include "paper.hh"
#include "lookup.hh"
#include "molecule.hh"
+#include "request.hh"
+NAME_METHOD(Notehead);
Notehead::Notehead(int ss)
{
position = 0;
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
}
}
Molecule*
-Notehead::brew_molecule() const return out;
+Notehead::brew_molecule_p() const return out;
{
Paperdef *p = paper();
Real dy = p->internote();
- Symbol s = p->lookup_->ball(balltype);
+ Symbol s = p->lookup_p_->ball(balltype);
out = new Molecule(Atom(s));
if (dots) {
- Symbol d = p->lookup_->dots(dots);
+ Symbol d = p->lookup_p_->dots(dots);
Molecule dm;
dm.add(Atom(d));
if (!(position %2))
if (streepjes) {
int dir = sign(position);
int s =(position<-1) ? -((-position)/2): (position-staff_size)/2;
- Symbol str = p->lookup_->streepjes(s);
+ Symbol str = p->lookup_p_->streepjes(s);
Molecule sm;
sm.add(Atom(str));
if (position % 2)
out->add(sm);
}
-
out->translate(Offset(0,dy*position));
}