From 565b311f985f3b310763202bc5607371fe600ce6 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:28:53 +0000 Subject: [PATCH] lilypond-0.0.26 --- hdr/staffwalker.hh | 7 ++++--- hdr/stcol.hh | 2 +- src/complexmelodicstaff.cc | 31 +++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 src/complexmelodicstaff.cc diff --git a/hdr/staffwalker.hh b/hdr/staffwalker.hh index d9945229f2..efac63e7b0 100644 --- a/hdr/staffwalker.hh +++ b/hdr/staffwalker.hh @@ -11,8 +11,8 @@ #include "staff.hh" struct Staff_walker : public PCursor { - Staff * staff_; - PScore * pscore_; + Staff * staff_l_; + PScore * pscore_l_; int break_status; @@ -31,7 +31,8 @@ struct Staff_walker : public PCursor { ****************/ /// every time ++ is called - virtual void reset(){} + virtual void do_pre_move(){} + virtual void do_post_move(){} virtual void process_requests()=0; virtual void do_TYPESET_command(Command*)=0; virtual void do_INTERPRET_command(Command*)=0 ; diff --git a/hdr/stcol.hh b/hdr/stcol.hh index b9e3a9bba8..0984f88022 100644 --- a/hdr/stcol.hh +++ b/hdr/stcol.hh @@ -34,7 +34,7 @@ struct Staff_column { VIRTUAL ****************************************************************/ - virtual void process_requests()=0; + virtual void setup_requests()=0; virtual ~Staff_column(); private: diff --git a/src/complexmelodicstaff.cc b/src/complexmelodicstaff.cc new file mode 100644 index 0000000000..66aa63ea07 --- /dev/null +++ b/src/complexmelodicstaff.cc @@ -0,0 +1,31 @@ +#include "keyitem.hh" +#include "stem.hh" +#include "rest.hh" +#include "notehead.hh" +#include "paper.hh" +#include "molecule.hh" +#include "linepstaff.hh" +#include "complexmelodicstaff.hh" +#include "sccol.hh" +#include "localkeyitem.hh" +#include "request.hh" + +const int NO_LINES=5; + + +void +Complex_melodic_staff::set_output(PScore*ps) +{ + theline_l_ = new Linestaff(NO_LINES,ps); // theline_l_ is added to pscore later. + Complex_staff::set_output(ps); +} + +Item * +Complex_melodic_staff::get_TYPESET_item(Command*com) +{ + if (com->args[0] == "KEY") { + return new Keyitem(NO_LINES); // urgh. depends on clef. + } else + return Complex_staff::get_TYPESET_item(com); +} + -- 2.39.5