From: fred Date: Mon, 4 Nov 1996 14:01:59 +0000 (+0000) Subject: lilypond-0.0.7 X-Git-Tag: release/1.5.59~6933 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e482664674913214cc92c667b8c52d592173af73;p=lilypond.git lilypond-0.0.7 --- diff --git a/rhythmstaff.hh b/rhythmstaff.hh index 7fe7c6a887..130f6483b9 100644 --- a/rhythmstaff.hh +++ b/rhythmstaff.hh @@ -21,6 +21,7 @@ struct Rhythmic_staff : public Simple_staff /// this does the typesetting struct Rhythmic_column : public Simple_column { virtual void typeset_req(Request *rq); + virtual void typeset_stem(Stem_req *rq); virtual void typeset_command(Command *, int brs); diff --git a/spanner.cc b/spanner.cc new file mode 100644 index 0000000000..f9eb65367b --- /dev/null +++ b/spanner.cc @@ -0,0 +1,32 @@ + +#include "spanner.hh" +#include "line.hh" + +#include "symbol.hh" +#include "molecule.hh" +#include "pcol.hh" + +String +Spanner::TeXstring() const +{ + assert(right->line); + Real w = left->hpos - right->hpos; + return strets->eval(w).tex; +} + +Spanner * +Spanner::broken_at(const PCol *c1, const PCol *c2) const +{ + Spanner *sp = new Spanner(*this); + sp->left = c1; + sp->right = c2; + return sp; +} + +Spanner::Spanner() +{ + pstaff_=0; + strets=0; + left = right = 0; +} + diff --git a/stem.hh b/stem.hh new file mode 100644 index 0000000000..039bc5182c --- /dev/null +++ b/stem.hh @@ -0,0 +1,31 @@ +/* + stem.hh -- part of LilyPond + + (c) 1996 Han-Wen Nienhuys +*/ + +#ifndef STEM_HH +#define STEM_HH +#include "item.hh" + +struct Stem : public Item { + // heads the stem encompasses (positions) + int minnote, maxnote; + + int staff_center; + + // extent of the stem (positions) + int bot, top; + + // flagtype? 4 none, 8 8th flag, 0 = beam. + int flag; + + + /****************/ + void brew_molecole(); + void calculate(); + Stem(int center); + void print() const; + Interval width() const; +}; +#endif diff --git a/template2.cc b/template2.cc index 1c54a2cb94..5e0431c42a 100644 --- a/template2.cc +++ b/template2.cc @@ -5,6 +5,7 @@ #include "staff.hh" #include "sccol.hh" #include "stcol.hh" +#include "spanner.hh" #include "list.cc" #include "plist.cc"