1 #include "melodicstaff.hh"
7 #include "linestaff.hh"
8 #include "rhythmstaff.hh"
12 const int BOTTOM_POSITION=2; // e is on bottom line of 5-staff...
15 Melodic_staff::set_output(PScore*ps)
17 theline = new Linestaff(NO_LINES,ps);
18 Simple_staff::set_output(ps);
23 Melodic_staff::get_notehead(Note_req *rq)
25 int b = rq->rhythmic()->balltype;
26 int d = rq->rhythmic()->dots;
28 Notehead *n =new Notehead((NO_LINES-1)*2);
31 n->position = rq->note()->height() - BOTTOM_POSITION;
37 Melodic_staff::get_stem(Stem_req*rq)
39 Stem * s = new Stem(NO_LINES-1);
40 s->flag = rq->stem_number;
48 get_new_melodicstaff()
50 return new Melodic_staff;
56 Melodic_staff::clone()const
58 return new Melodic_staff(*this);