flower-1.0.27
[lilypond.git] / src / rhythmstaff.cc
blob519ea18cfa5fa7591c1f9c1390d3b5e62df790a0
1 #include "molecule.hh"
2 #include "score.hh"
3 #include "request.hh"
4 #include "notehead.hh"
5 #include "stem.hh"
6 #include "linepstaff.hh"
7 #include "rhythmstaff.hh"
8 #include "paper.hh"
9 #include "sccol.hh"
10 #include "rest.hh"
12 void
13 Rhythmic_staff::set_output(PScore*ps)
15 theline_l_ = new Linestaff(1,ps);
16 Simple_staff::set_output(ps);
19 Item *
20 Rhythmic_staff::get_TYPESET_item(Command *com)
22 if (com->args[0] == "KEY" || com->args[0] == "CLEF"||
23 com->args[0] == "CURRENTCLEF")
24 return 0;
25 Item *i = Simple_staff::get_TYPESET_item(com);
26 if (!i) return 0;
27 i->translate(Offset(0,
28 -score_l_->paper_p_->standard_height()/2));
29 return i;
32 Notehead*
33 Rhythmic_staff::get_notehead(Note_req *rq, int)
35 Notehead *n =new Notehead(1);
36 n->set_rhythmic(rq->rhythmic());
37 n->position = 0;
38 return n;
41 Stem *
42 Rhythmic_staff::get_stem(Stem_req*rq)
44 Stem * s = new Stem(0);
45 s->flag = rq->balltype;
46 return s;