From 3d1432fda834d6b07817df74582cadec924c4e89 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:29:16 +0000 Subject: [PATCH] lilypond-0.0.27 --- src/complexprint.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/complexprint.cc b/src/complexprint.cc index f266f7bed7..372d86db10 100644 --- a/src/complexprint.cc +++ b/src/complexprint.cc @@ -1,13 +1,16 @@ +#include "keyitem.hh" + #include "request.hh" #include "pscore.hh" #include "paper.hh" #include "complexstaff.hh" #include "sccol.hh" #include "debug.hh" - +#include "linepstaff.hh" #include "clefitem.hh" #include "bar.hh" #include "meter.hh" +const NO_LINES = 5; Item * Complex_staff::get_TYPESET_item(Command *com) @@ -16,7 +19,9 @@ Complex_staff::get_TYPESET_item(Command *com) Array arg( com->args); String type =arg[0]; arg.del(0); - if (type == "BAR" ) { + if (com->args[0] == "KEY") { + return new Keyitem(NO_LINES); // urgh. depends on clef. + } else if (type == "BAR" ) { s = new Bar(com->args[1]); } else if (type == "METER") { s = new Meter(arg); @@ -31,6 +36,7 @@ Complex_staff::get_TYPESET_item(Command *com) } + Interval citemlist_width(const Array &its) { @@ -91,6 +97,7 @@ Complex_column::typeset_item_directional(Item *i, int dir, int breakst) // UGH! void Complex_staff::set_output(PScore* ps ) { + theline_l_ = new Linestaff(NO_LINES,ps); // theline_l_ is added to pscore later. pscore_l_ = ps; pscore_l_->add(theline_l_); } -- 2.39.5