10 NAME_METHOD(Notehead);
12 Notehead::Notehead(int ss)
22 Notehead::set_rhythmic(Rhythmic_req*r_req_l)
24 balltype = r_req_l->balltype;
29 Notehead::do_print()const
32 mtor << "balltype "<< balltype << ", position = "<< position
39 Notehead::compare(Notehead*&a, Notehead*&b)
41 return a->position - b->position;
45 Notehead::brew_molecule_p() const return out;
47 Paperdef *p = paper();
49 Real dy = p->internote();
50 Symbol s = p->lookup_p_->ball(balltype);
52 out = new Molecule(Atom(s));
54 Symbol d = p->lookup_p_->dots(dots);
58 dm.translate(Offset(0,dy));
61 out->translate(Offset(x_dir * p->note_width(),0));
62 bool streepjes = (position<-1)||(position > staff_size+1);
64 int dir = sign(position);
65 int s =(position<-1) ? -((-position)/2): (position-staff_size)/2;
66 Symbol str = p->lookup_p_->streepjes(s);
70 sm.translate(Offset(0,-dy* dir));
74 out->translate(Offset(0,dy*position));