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(svec<int>a )
50 Input_command*c = new Input_command;
51 c->args.add("GROUPING");
52 for (int i=0; i < a.sz(); i ++)
59 get_key_interpret_command(svec<int >a )
61 Input_command*c = new Input_command;
63 for (int i=0; i < a.sz(); 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");
92 Input_command*c = new Input_command;
101 get_skip_command(int n, Moment m)
103 Input_command*c = new Input_command;
105 c->args.add( "SKIP");
114 Input_command::print()const
119 for (int i = 0; i<args.sz(); i++)
120 mtor << "`"<<args[i] <<"',";
126 get_clef_interpret_command(String w)
128 Input_command*c = new Input_command;
135 get_default_grouping(int count)
139 for (int i=0; i < count/3; i++)
141 } else if (!(count %2)) {
142 for (int i=0; i < count/2; i++)
146 s.concat(get_default_grouping(count-2));