From 5c5836f37258975e8cffa6a7e60b67da76fa7d74 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 2 Nov 1996 09:08:20 +0000 Subject: [PATCH] lilypond-0.0.6 --- rhythmstaff.cc | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 rhythmstaff.cc 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); +} -- 2.39.5