1 #include "inputcommand.hh"
5 Input_command::Input_command()
10 Input_command::operator Command()
24 else if (s == "METER")
28 else if (s == "GROUPING")
39 get_partial_command(Moment u)
41 Input_command*c = new Input_command;
42 c->args.add("PARTIAL");
48 get_grouping_command(Array<int>a )
50 Input_command*c = new Input_command;
51 c->args.add("GROUPING");
52 for (int i=0; i < a.size(); i ++)
59 get_key_interpret_command(Array<int >a )
61 Input_command*c = new Input_command;
63 for (int i=0; i < a.size(); i ++) {
72 Input_command*c = new Input_command;
78 get_meterchange_command(int n, int m)
80 Input_command*c = new Input_command;
82 c->args.add( "METER");
90 get_newmeasure_command()
92 Input_command*c = new Input_command;
94 c->args.add( "NEWMEASURE");
100 get_skip_command(int n, Moment m)
102 Input_command*c = new Input_command;
104 c->args.add( "SKIP");
113 Input_command::print()const
118 for (int i = 0; i<args.size(); i++)
119 mtor << "`"<<args[i] <<"',";
125 get_clef_interpret_command(String w)
127 Input_command*c = new Input_command;
134 get_bar_command(String w)
136 Input_command*c = new Input_command;
143 get_default_grouping(int count)
147 for (int i=0; i < count/3; i++)
149 } else if (!(count %2)) {
150 for (int i=0; i < count/2; i++)
154 s.concat(get_default_grouping(count-2));