1 #include "melodicstaff.hh"
8 #include "linestaff.hh"
9 #include "rhythmstaff.hh"
11 #include "localkeyitem.hh"
17 Melodic_staff::set_output(PScore*ps)
19 theline = new Linestaff(NO_LINES,ps);
20 Simple_staff::set_output(ps);
25 Melodic_staff::get_notehead(Note_req *rq, int bottom)
27 int b = rq->rhythmic()->balltype;
28 int d = rq->rhythmic()->dots;
30 Notehead *n =new Notehead((NO_LINES-1)*2);
33 n->position = rq->note()->height() + bottom;
38 Melodic_staff::get_TYPESET_item(Command*com)
40 if (com->args[0] == "KEY") {
41 return new Keyitem(NO_LINES); // urgh.
43 return Simple_staff::get_TYPESET_item(com);
47 Melodic_staff::get_stem(Stem_req*rq)
49 Stem * s = new Stem(NO_LINES-1);
50 s->flag = rq->stem_number;
58 get_new_melodicstaff()
60 return new Melodic_staff;
66 Melodic_staff::clone()const
68 return new Melodic_staff(*this);
71 Local_key_item* Melodic_staff::get_local_key_item()
73 return new Local_key_item(-2);