From 9f8b563baf497a110aca255c8361d7440da55bfa Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:28:12 +0000 Subject: [PATCH] lilypond-0.0.23 --- src/inputstaff.cc | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/inputstaff.cc b/src/inputstaff.cc index 1786f3e293..c121984cd0 100644 --- a/src/inputstaff.cc +++ b/src/inputstaff.cc @@ -1,8 +1,8 @@ #include "getcommand.hh" #include "debug.hh" +#include "score.hh" #include "inputmusic.hh" #include "inputstaff.hh" -#include "inputcommands.hh" #include "inputcommand.hh" #include "staffcommands.hh" #include "melodicstaff.hh" @@ -30,7 +30,7 @@ Input_staff::add(Input_music*m) } Staff* -Input_staff::parse(PointerList score_wide, Score*score_l) +Input_staff::parse(Score*score_l) { Staff *p=0; @@ -39,29 +39,30 @@ Input_staff::parse(PointerList score_wide, Score*score_l) else if (type == "rhythmic") p = new Rhythmic_staff; p->score_l_ = score_l; + p->define_spot_str_ = define_spot_str_; + for (iter_top(music_,i); i.ok(); i++) { Voice_list vl = i->convert(); p->add(vl); } - - Input_commands commands; - for (iter_top(score_wide,i); i.ok(); i++) - commands.add(**i); - for (iter_top(commands_,i); i.ok(); i++) - commands.add(**i); - - commands.parse(p); - + + { + Array mark_arr; + Array moment_arr; + p->get_marks(mark_arr, moment_arr); + score_l->add_marks(mark_arr, moment_arr); + } + return p; } -Input_staff::Input_staff(Input_staff&s) +Input_staff::Input_staff(Input_staff const&s) { for (iter_top(s.commands_,i); i.ok(); i++) commands_.bottom().add(new Input_command(**i)); for (iter_top(s.music_,i); i.ok(); i++) add(i->clone()); - + define_spot_str_ = s.define_spot_str_; type = s.type; } -- 2.39.5