]> git.donarmstrong.com Git - lilypond.git/blob - src/complexmelodicstaff.cc
release: 0.0.26
[lilypond.git] / src / complexmelodicstaff.cc
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"
12
13 const int NO_LINES=5;
14
15
16 void
17 Complex_melodic_staff::set_output(PScore*ps)
18 {
19     theline_l_ = new Linestaff(NO_LINES,ps); // theline_l_ is added to pscore later.
20     Complex_staff::set_output(ps);
21 }
22
23 Item *
24 Complex_melodic_staff::get_TYPESET_item(Command*com)
25 {
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);
30 }
31