1 #include "melodicstaff.hh"
8 #include "linepstaff.hh"
9 //#include "rhythmstaff.hh"
11 #include "localkeyitem.hh"
18 Melodic_staff::set_output(PScore
*ps
)
20 theline_l_
= new Linestaff(NO_LINES
,ps
); // theline_l_ is added to pscore later.
21 Simple_staff::set_output(ps
);
26 Melodic_staff::get_notehead(Note_req
*rq
, int bottom
)
28 Notehead
*n
=new Notehead((NO_LINES
-1)*2);
29 n
->set_rhythmic(rq
->rhythmic());
30 n
->position
= rq
->note()->height() + bottom
;
31 n
->defined_ch_c_l_m
= rq
->defined_ch_c_l_m
;
36 Melodic_staff::get_TYPESET_item(Command
*com
)
38 if (com
->args
[0] == "KEY") {
39 return new Keyitem(NO_LINES
); // urgh. depends on clef.
41 return Simple_staff::get_TYPESET_item(com
);
45 Melodic_staff::get_stem(Stem_req
*rq
)
47 Stem
* s
= new Stem(NO_LINES
-1);
48 s
->flag
= rq
->balltype
;
53 Melodic_staff::get_rest(Rest_req
*rq
)
55 Rest
*r
= Simple_staff::get_rest(rq
);
56 if (rq
->balltype
<= 2)
57 r
->translate(Offset(0, NO_LINES
* paper()->internote()));
62 Melodic_staff::get_local_key_item()
64 return new Local_key_item(-2);