blob: f9e6933390ab7244cc8ff62444ed2eaadf99d2e7 (
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
59
60
61
62
63
64
65
66
67
68
69
70
|
int main()
{
switch (opcode)
{
case 1:
{
return Number(localeCompare(s, a0.toString(exec)));
}
#ifndef A
case 2:
{
result = String("<big>" + s + "</big>");
break;
}
#endif
}
switch (ev->command)
{
case (3):
{
ev->note = *ptrdata; ptrdata++; currentpos++;
ev->vel = *ptrdata; ptrdata++; currentpos++;
if (ev->vel==0)
note[ev->chn][ev->note]=FALSE;
else
note[ev->chn][ev->note]=TRUE;
#ifdef B
if (ev->chn==6) {
if (ev->vel==0) printfdebug("Note Onf\n");
else printfdebug("Note On\n");
};
#endif
break;
}
case (4):
{
#ifdef C
if (ev->chn==6) printfdebug("Note Off\n");
#endif
ev->note = *ptrdata; ptrdata++; currentpos++;
ev->vel = *ptrdata; ptrdata++; currentpos++;
note[ev->chn][ev->note]=FALSE;
break;
}
case (5):
{
#ifdef D
if (ev->chn==6) printfdebug ("Key press\n");
#endif
ev->note = *ptrdata; ptrdata++; currentpos++;
ev->vel = *ptrdata; ptrdata++; currentpos++;
break;
}
#ifndef E
case 6:
{
result = String("<big>" + s + "</big>");
break;
}
#endif
}
}
|