1 #include "melodicstaff.hh"
6 #include "linestaff.hh"
7 #include "rhythmstaff.hh"
11 const int BOTTOM_POSITION=2; // e is on bottom line of 5-staff...
14 Melodic_staff::set_output(PScore*ps)
16 theline = new Linestaff(NO_LINES,ps);
17 Simple_staff::set_output(ps);
21 Melodic_column::typeset_command(Command *com, int breakst)
23 Molecule*m=create_command_mol(com);
26 typeset_item(i, breakst);
30 Melodic_column::typeset_req(Request *rq)
33 Molecule*m=create_req_mol(rq);
36 int h = rq->note()->height();
37 Real dy = staff_->paper()->interline()/2;
38 m->translate(Offset(0,(h-BOTTOM_POSITION)*dy));
46 Melodic_column::typeset_stem(Stem_req*rq)
48 Stem * s = new Stem(NO_LINES);
49 int n = the_note->note()->height()-BOTTOM_POSITION;
50 s->minnote =s->maxnote=n;
51 s->flag = rq->stem_number;
62 get_new_melodicstaff()
64 return new Melodic_staff;
69 Melodic_staff::create_col(Score_column*s)
71 return new Melodic_column(s,this);
75 Melodic_staff::clone()const
77 return new Melodic_staff(*this);