1 #include "melodicstaff.hh"
8 #include "linestaff.hh"
9 #include "rhythmstaff.hh"
11 #include "localkeyitem.hh"
18 Melodic_staff::set_output(PScore*ps)
20 theline = new Linestaff(NO_LINES,ps);
21 Simple_staff::set_output(ps);
26 Melodic_staff::get_notehead(Note_req *rq, int bottom)
28 int b = rq->rhythmic()->balltype;
29 int d = rq->rhythmic()->dots;
31 Notehead *n =new Notehead((NO_LINES-1)*2);
34 n->position = rq->note()->height() + bottom;
39 Melodic_staff::get_TYPESET_item(Command*com)
41 if (com->args[0] == "KEY") {
42 return new Keyitem(NO_LINES); // urgh. depends on clef.
44 return Simple_staff::get_TYPESET_item(com);
48 Melodic_staff::get_stem(Stem_req*rq)
50 Stem * s = new Stem(NO_LINES-1);
51 s->flag = rq->stem_number;
59 get_new_melodicstaff()
61 return new Melodic_staff;
65 Melodic_staff::get_rest(Rest_req*rq)
67 Rest*r = Simple_staff::get_rest(rq);
68 if (rq->balltype <= 2)
69 r->translate(Offset(0, (NO_LINES-1) * paper()->internote()));
74 Melodic_staff::get_local_key_item()
76 return new Local_key_item(-2);