blob: 1f9362c59cdd8651da2b37d7c4ba8ba22f18ef9c (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#include "string.hh"
#include "parseconstruct.hh"
#include "command.hh"
Command*
get_bar_command(Real w)
{
Command*c = new Command;
c->when = w;
c->code = TYPESET;
c->args.add( "BAR");
c->args.add( "|");
c->priority = 100;
return c;
}
Command *
get_meter_command(Real w, int n, int m)
{
Command*c = new Command;
c->when = w;
c->code = TYPESET;
c->args.add( "METER");
c->args.add( n );
c->args.add( m );
c->priority = 50; // less than bar
return c;
}
Command *
get_meterchange_command(int n, int m)
{
Command*c = new Command;
c->code = INTERPRET;
c->args.add( "METER");
c->args.add( n );
c->args.add( m );
c->priority = 0; // more than bar
return c;
}
Command *
get_skip_command(int n, Real m)
{
Command*c = new Command;
c->code = INTERPRET;
c->args.add( "SKIP");
c->args.add( n );
c->args.add( m );
c->priority = 0; // more than bar
return c;
}
|