From: fred Date: Sat, 2 Nov 1996 09:08:20 +0000 (+0000) Subject: lilypond-0.0.6 X-Git-Tag: release/1.5.59~6949 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5c5836f37258975e8cffa6a7e60b67da76fa7d74;p=lilypond.git lilypond-0.0.6 --- diff --git a/rhythmstaff.cc b/rhythmstaff.cc new file mode 100644 index 0000000000..4e564bdf88 --- /dev/null +++ b/rhythmstaff.cc @@ -0,0 +1,52 @@ +#include "molecule.hh" +#include "linestaff.hh" +#include "rhythmstaff.hh" +#include "paper.hh" +#include "sccol.hh" + + +void +Rhythmic_staff::set_output(PScore*ps) +{ + theline = new Linestaff(1,ps); + Simple_staff::set_output(ps); +} + + +void +Rhythmic_column::typeset_command(Command *com, int breakst) +{ + Item *i = create_command_item(com); + i->output->translate(Offset(0, + -staff_->score_->paper_->standard_height()/2)); + typeset_item(i, breakst); +} + +void +Rhythmic_column::typeset_req(Request *rq) +{ + Item *i =create_req_item(rq); + typeset_item(i); +} + +/* + creation + */ +Staff * +get_new_rhythmstaff() +{ + return new Rhythmic_staff; +} + + +Staff_column* +Rhythmic_staff::create_col(Score_column*s) +{ + return new Rhythmic_column(s,this); +} + +Rhythmic_staff* +Rhythmic_staff::clone() const +{ + return new Rhythmic_staff(*this); +}