lilypond-0.1.47
[lilypond.git] / src / complexmelodicstaff.cc
blob66aa63ea07fae94f47943089c7eed60c15ff7930
1 #include "keyitem.hh"
2 #include "stem.hh"
3 #include "rest.hh"
4 #include "notehead.hh"
5 #include "paper.hh"
6 #include "molecule.hh"
7 #include "linepstaff.hh"
8 #include "complexmelodicstaff.hh"
9 #include "sccol.hh"
10 #include "localkeyitem.hh"
11 #include "request.hh"
13 const int NO_LINES=5;
16 void
17 Complex_melodic_staff::set_output(PScore*ps)
19 theline_l_ = new Linestaff(NO_LINES,ps); // theline_l_ is added to pscore later.
20 Complex_staff::set_output(ps);
23 Item *
24 Complex_melodic_staff::get_TYPESET_item(Command*com)
26 if (com->args[0] == "KEY") {
27 return new Keyitem(NO_LINES); // urgh. depends on clef.
28 } else
29 return Complex_staff::get_TYPESET_item(com);