1 #include "getcommand.hh"
3 #include "inputmusic.hh"
4 #include "inputstaff.hh"
5 #include "inputcommands.hh"
6 #include "inputcommand.hh"
7 #include "staffcommands.hh"
8 #include "melodicstaff.hh"
9 #include "rhythmstaff.hh"
13 Input_staff::add(Array<Input_command*> &s)
15 commands_.bottom().add(get_reset_command());
16 for (int i=0; i < s.size(); i++)
17 commands_.bottom().add(s[i]);
21 Input_staff::Input_staff(String s)
27 Input_staff::add(Input_music*m)
29 music_.bottom().add(m);
33 Input_staff::parse(PointerList<Input_command*> score_wide, Score*score_l)
37 if (type == "melodic")
38 p = new Melodic_staff;
39 else if (type == "rhythmic")
40 p = new Rhythmic_staff;
41 p->score_l_ = score_l;
42 for (iter_top(music_,i); i.ok(); i++) {
43 Voice_list vl = i->convert();
47 Input_commands commands;
48 for (iter_top(score_wide,i); i.ok(); i++)
50 for (iter_top(commands_,i); i.ok(); i++)
58 Input_staff::Input_staff(Input_staff&s)
60 for (iter_top(s.commands_,i); i.ok(); i++)
61 commands_.bottom().add(new Input_command(**i));
62 for (iter_top(s.music_,i); i.ok(); i++)
69 Input_staff::print() const
72 mtor << "Input_staff {\n";
73 for (iter_top(commands_,i); i.ok(); i++)
75 for (iter_top(music_,i); i.ok(); i++)