-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheasy_debug.cpp
More file actions
181 lines (176 loc) · 3.36 KB
/
Copy patheasy_debug.cpp
File metadata and controls
181 lines (176 loc) · 3.36 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#include "easy_code.h"
const char * debug_type (int dtype) {
switch (dtype) {
case WF_SINE:
return "sine";
case WF_SQUARE:
return "square";
case WF_SAW:
return "saw";
case WF_TRI:
return "tri";
case WF_TENS:
return "tens";
case PLUS:
return " + ";
case MINUS:
return " - ";
case MULT:
return " * ";
case DIV:
return " \\ ";
case MODULUS:
return " %% ";
case STRING:
return " string ";
case NUMBER:
return " number ";
case ASSIGNMENT:
return " = ";
case FILENAME:
return " filename ";
case AUTOMIX:
return "automix";
case OUTPUT:
return "output";
case FADEIN:
return "fadein";
case FADEOUT:
return "fadeout";
case FORM:
return "form";
case RIGHT:
return "right";
case LEFT:
return "left";
case FREQ:
return "freq";
case PHASE:
return "phase";
case VOL:
return "vol";
case BAL:
return "bal";
case DUTY:
return "duty";
case RANDOM:
return "random";
case RAMP:
return "ramp";
case SHAPE:
return "shape";
case OSC:
return "osc";
case SOUND:
return "sound";
case MIX:
return "mix";
case SILENCE:
return "silence";
case TIME:
return "time";
case REWIND:
return "rewind";
case AMOD:
return "amod";
case BOOST:
return "boost";
case REPEAT:
return "repeat";
case BOTH:
return "both";
case RANDSEQ:
return "randseq";
case NOOP:
return " NOOP ";
case ADDTIME:
return "addtime";
case SEQ:
return "seq";
case MANUALMIX:
return "manualmix";
case LOOP:
return "loop";
case REVERB:
return "reverb";
case CIRCUIT:
return "circuit";
case NOCIRCUIT:
return "nocircuit";
case CIRP:
return "cirp";
case CIRI:
return "ciri";
case TO:
return "to";
case FREQ2:
return "FREQ2";
case FREQ3:
return "FREQ3";
case VOL2:
return "VOL2";
case VOL3:
return "VOL3";
case RAMPS:
return "RAMPS";
case EXIT:
return "EXIT";
case TIMESTAMP:
return "TIMESTAMP";
case ASSIGNLHS:
return "ASSIGNLHS";
case SUB:
return "SUB";
case END:
return "END";
case CALL:
return "CALL";
case REQUIRE:
return "REQUIRE";
case SH_TEASE1:
return "tease1";
case SH_TEASE2:
return "tease2";
case SH_TEASE3:
return "tease3";
case SH_PULSE1:
return "pulse";
case SH_PULSE2:
return "pulse2";
case SH_PULSE3:
return "pulse3";
case SH_KICK1:
return "kick1";
case SH_KICK2:
return "kick2";
case SH_KICK3:
return "kick3";
case SH_NOTCH1:
return "notch1";
case SH_NOTCH2:
return "notch2";
case SH_NOTCH3:
return "notch3";
case SH_ADSR1:
return "adsr1";
case SH_ADSR2:
return "adsr2";
case SH_ADSR3:
return "adsr3";
case SH_REV1:
return "rev1";
case SH_REV2:
return "rev2";
case SH_REV3:
return "rev3";
case SH_WEDGE1:
return "wedge1";
case SH_WEDGE2:
return "wedge2";
case SH_GAP1:
return "rev3";
case SH_GAP2:
return "rev3";
}
return "Unknown";
}