|
@@ -0,0 +1,279 @@
|
|
1
|
+#include "cmPrefix.h"
|
|
2
|
+#include "cmGlobal.h"
|
|
3
|
+#include "cmFloatTypes.h"
|
|
4
|
+#include "cmRpt.h"
|
|
5
|
+#include "cmErr.h"
|
|
6
|
+#include "cmCtx.h"
|
|
7
|
+#include "cmMem.h"
|
|
8
|
+#include "cmMallocDebug.h"
|
|
9
|
+#include "cmLinkedHeap.h"
|
|
10
|
+#include "cmText.h"
|
|
11
|
+#include "cmFileSys.h"
|
|
12
|
+#include "cmSymTbl.h"
|
|
13
|
+#include "cmJson.h"
|
|
14
|
+#include "cmPrefs.h"
|
|
15
|
+#include "cmDspValue.h"
|
|
16
|
+#include "cmMsgProtocol.h"
|
|
17
|
+#include "cmThread.h"
|
|
18
|
+#include "cmUdpPort.h"
|
|
19
|
+#include "cmUdpNet.h"
|
|
20
|
+#include "cmTime.h"
|
|
21
|
+#include "cmAudioSys.h"
|
|
22
|
+#include "cmProcObj.h"
|
|
23
|
+#include "cmDspCtx.h"
|
|
24
|
+#include "cmDspClass.h"
|
|
25
|
+#include "cmDspSys.h"
|
|
26
|
+#include "cmDspPgm.h"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+#include "cmAudioFile.h"
|
|
30
|
+#include "cmProcObj.h"
|
|
31
|
+#include "cmProc.h"
|
|
32
|
+#include "cmProc3.h"
|
|
33
|
+
|
|
34
|
+#include "cmVectOpsTemplateMain.h"
|
|
35
|
+#include "cmVectOps.h"
|
|
36
|
+
|
|
37
|
+#include "cmDspPgmKrChain.h"
|
|
38
|
+
|
|
39
|
+#undef KR2
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+cmDspRC_t krLoadRsrc(cmDspSysH_t h, cmErr_t* err, krRsrc_t* r)
|
|
43
|
+{
|
|
44
|
+ cmDspRC_t rc;
|
|
45
|
+ if((rc = cmDspSysLastRC(h)) != kOkDspRC )
|
|
46
|
+ return rc;
|
|
47
|
+
|
|
48
|
+ cmDspRsrcString(h,&r->tlFn, "timeLineFn", NULL);
|
|
49
|
+ cmDspRsrcString(h,&r->tlPrefixPath,"tlPrefixPath", NULL);
|
|
50
|
+ cmDspRsrcString(h,&r->scFn, "scoreFn", NULL);
|
|
51
|
+ cmDspRsrcString(h,&r->tksbFn, "tksbFn", NULL);
|
|
52
|
+ cmDspRsrcString(h,&r->modFn, "modFn", NULL);
|
|
53
|
+ cmDspRsrcString(h,&r->measFn, "measFn", NULL);
|
|
54
|
+ cmDspRsrcString(h,&r->recordDir, "recordDir", NULL);
|
|
55
|
+ cmDspRsrcString(h,&r->midiDevice, "midiDevice", NULL);
|
|
56
|
+ cmDspRsrcString(h,&r->midiOutPort, "midiOutPort", NULL);
|
|
57
|
+ cmDspRsrcString(h,&r->midiOutPort2,"midiOutPort2", NULL);
|
|
58
|
+
|
|
59
|
+ if((rc = cmDspSysLastRC(h)) != kOkDspRC )
|
|
60
|
+ cmErrMsg(err,rc,"A KR DSP resource load failed.");
|
|
61
|
+
|
|
62
|
+ return rc;
|
|
63
|
+}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+const cmChar_t* _mlbl(const cmChar_t* prefix, unsigned ch )
|
|
67
|
+{
|
|
68
|
+ static char s[128];
|
|
69
|
+ s[127]=0;
|
|
70
|
+ snprintf(s,127,"%s%i",prefix,ch);
|
|
71
|
+ return s;
|
|
72
|
+}
|
|
73
|
+
|
|
74
|
+#define mlbl(a) _mlbl(a,mch)
|
|
75
|
+#define lbl(a) cmDspSysPrintLabel(a,ach)
|
|
76
|
+
|
|
77
|
+void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpSymId, unsigned cmpPreGrpSymId, cmDspInst_t* amp, cmDspInst_t* modp, unsigned ach, unsigned mch )
|
|
78
|
+{
|
|
79
|
+
|
|
80
|
+ int krWndSmpCnt = 2048;
|
|
81
|
+ int krHopFact = 4;
|
|
82
|
+
|
|
83
|
+ unsigned xfadeChCnt = 2;
|
|
84
|
+ double xfadeMs = 50;
|
|
85
|
+ bool xfadeInitFl = true;
|
|
86
|
+ double mixGain = 1.0;
|
|
87
|
+
|
|
88
|
+ bool cmpBypassFl = false;
|
|
89
|
+ double cmpInGain = 3.0;
|
|
90
|
+ double cmpThreshDb = -40.0;
|
|
91
|
+ double cmpRatio_num = 5.0;
|
|
92
|
+ double cmpAtkMs = 20.0;
|
|
93
|
+ double cmpRlsMs = 100.0;
|
|
94
|
+ double cmpMakeup = 1.0;
|
|
95
|
+ double cmpWndMaxMs = 1000.0;
|
|
96
|
+ double cmpWndMs = 200.0;
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+ cmDspInst_t* achan = cmDspSysAllocInst(h, "AvailCh", NULL, 1, xfadeChCnt );
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+ // Parameter-> kr routers (routers used to cross-fade between the two kr units)
|
|
104
|
+ unsigned paramRtChCnt = 2;
|
|
105
|
+ cmDspInst_t* wnd_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
106
|
+ cmDspInst_t* hop_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
107
|
+ cmDspInst_t* cel_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
108
|
+ cmDspInst_t* exp_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
109
|
+ cmDspInst_t* mix_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
110
|
+ cmDspInst_t* thr_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
111
|
+ cmDspInst_t* upr_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
112
|
+ cmDspInst_t* lwr_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
113
|
+ cmDspInst_t* wet_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
|
114
|
+
|
|
115
|
+ // Audio processors
|
|
116
|
+ cmDspInst_t* kr0 = cmDspSysAllocInst(h, "Kr2", NULL, 2, krWndSmpCnt, krHopFact );
|
|
117
|
+ cmDspInst_t* kr1 = cmDspSysAllocInst(h, "Kr2", NULL, 2, krWndSmpCnt, krHopFact );
|
|
118
|
+ cmDspInst_t* xfad = cmDspSysAllocInst(h, "Xfader", NULL, 3, xfadeChCnt, xfadeMs, xfadeInitFl );
|
|
119
|
+ cmDspInst_t* mix = cmDspSysAllocInst(h, "AMix", NULL, 3, xfadeChCnt, mixGain, mixGain );
|
|
120
|
+ cmDspInst_t* cmp = cmDspSysAllocInst(h, "Compressor", NULL, 8, cmpBypassFl, cmpThreshDb, cmpRatio_num, cmpAtkMs, cmpRlsMs, cmpMakeup, cmpWndMs, cmpWndMaxMs );
|
|
121
|
+
|
|
122
|
+ // Internal audio connections
|
|
123
|
+ cmDspSysConnectAudio(h, kr0, "out", xfad, "in-0");
|
|
124
|
+ cmDspSysConnectAudio(h, kr1, "out", xfad, "in-1");
|
|
125
|
+ cmDspSysConnectAudio(h, xfad, "out-0", mix, "in-0");
|
|
126
|
+ cmDspSysConnectAudio(h, xfad, "out-1", mix, "in-1");
|
|
127
|
+ cmDspSysConnectAudio(h, mix, "out", cmp, "in" );
|
|
128
|
+
|
|
129
|
+ // active channel <-> cross-fade connections
|
|
130
|
+ cmDspSysInstallCb(h, achan, "reset", xfad, "reset", NULL);
|
|
131
|
+ cmDspSysInstallCb(h, achan, "gate-0", xfad, "gate-0", NULL );
|
|
132
|
+ cmDspSysInstallCb(h, achan, "gate-1", xfad, "gate-1", NULL );
|
|
133
|
+ cmDspSysInstallCb(h, xfad, "state-0", achan, "dis-0", NULL );
|
|
134
|
+ cmDspSysInstallCb(h, xfad, "state-1", achan, "dis-1", NULL );
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+ // Measurement Number Controls
|
|
138
|
+ cmDspInst_t* val_dynm_ctl = cmDspSysAllocScalarP( h,preGrpSymId, NULL, lbl("Dynm Meas"), 0.0, 10.0, 1.0, 1.0);
|
|
139
|
+ cmDspInst_t* val_even_ctl = cmDspSysAllocScalarP( h,preGrpSymId, NULL, lbl("Even Meas"), 0.0, 3.0, 0.001, 0.5);
|
|
140
|
+ cmDspInst_t* val_tmpo_ctl = cmDspSysAllocScalarP( h,preGrpSymId, NULL, lbl("Tempo Meas"), 0.0, 200.0, 1.0, 100.0);
|
|
141
|
+ cmDspInst_t* val_cost_ctl = cmDspSysAllocScalarP( h,preGrpSymId, NULL, lbl("Cost Meas"), 0.0, 1.0, 0.01, 0.5);
|
|
142
|
+
|
|
143
|
+ // active measure to measurement UI controls
|
|
144
|
+ cmDspSysInstallCb(h, amp, "dyn", val_dynm_ctl, "val", NULL );
|
|
145
|
+ cmDspSysInstallCb(h, amp, "even", val_even_ctl, "val", NULL );
|
|
146
|
+ cmDspSysInstallCb(h, amp, "tempo", val_tmpo_ctl, "val", NULL );
|
|
147
|
+ cmDspSysInstallCb(h, amp, "cost", val_cost_ctl, "val", NULL );
|
|
148
|
+
|
|
149
|
+ // measurement UI controls to scMod
|
|
150
|
+ cmDspSysInstallCb(h, val_dynm_ctl, "val", modp, "dyn", NULL );
|
|
151
|
+ cmDspSysInstallCb(h, val_even_ctl, "val", modp, "even", NULL );
|
|
152
|
+ cmDspSysInstallCb(h, val_tmpo_ctl, "val", modp, "tempo", NULL );
|
|
153
|
+ cmDspSysInstallCb(h, val_cost_ctl, "val", modp, "cost", NULL );
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+ // Parameter number controls
|
|
157
|
+ cmDspSysNewColumn(h,0);
|
|
158
|
+ cmDspInst_t* wnd_ctl = cmDspSysAllocMsgListP(h,preGrpSymId,NULL, lbl("WndSmpCnt"), NULL, "wndSmpCnt", 2);
|
|
159
|
+ cmDspInst_t* hop_ctl = cmDspSysAllocMsgListP(h,preGrpSymId,NULL, lbl("HopFact"), NULL, "hopFact", 2);
|
|
160
|
+ cmDspInst_t* cel_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Ceiling"), 0.0, 100.0, 0.1, 30.0 );
|
|
161
|
+ cmDspInst_t* exp_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Expo"), -10.0, 10.0, 0.01, 2.0 );
|
|
162
|
+ cmDspInst_t* mix_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Mix"), 0.0, 1.0, 0.01, 0.0 );
|
|
163
|
+ cmDspInst_t* thr_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Threshold"), 0.0, 100.0, 1.0, 60.0 );
|
|
164
|
+ cmDspInst_t* upr_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Upr slope"), 0.0, 10.0, 0.01, 0.0 );
|
|
165
|
+ cmDspInst_t* lwr_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Lwr slope"), 0.3, 10.0, 0.01, 2.0 );
|
|
166
|
+ cmDspInst_t* wet_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Wet Dry"), 0.0, 1.0, 0.001, 1.0 );
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+ cmDspSysInstallCb(h, wnd_ctl, "out", wnd_rt, "f-in", NULL );
|
|
170
|
+ cmDspSysInstallCb(h, achan, "ch", wnd_rt, "sel", NULL ); // ach->rt sel
|
|
171
|
+ cmDspSysInstallCb(h, wnd_rt, "f-out-0", kr0, "wndn", NULL ); // wndn->kr
|
|
172
|
+ cmDspSysInstallCb(h, wnd_rt, "f-out-1", kr1, "wndn", NULL ); // wndn->kr
|
|
173
|
+
|
|
174
|
+ cmDspSysInstallCb(h, hop_ctl, "out", hop_rt, "f-in", NULL );
|
|
175
|
+ cmDspSysInstallCb(h, achan, "ch", hop_rt, "sel", NULL ); // ach->rt sel
|
|
176
|
+ cmDspSysInstallCb(h, hop_rt, "f-out-0", kr0, "hopf", NULL ); // hopf->kr
|
|
177
|
+ cmDspSysInstallCb(h, hop_rt, "f-out-1", kr1, "hopf", NULL ); // hopf->kr
|
|
178
|
+
|
|
179
|
+ cmDspSysInstallCb(h, thr_ctl, "val", thr_rt, "f-in", NULL );
|
|
180
|
+ cmDspSysInstallCb(h, achan, "ch", thr_rt, "sel", NULL ); // ach->rt sel
|
|
181
|
+ cmDspSysInstallCb(h, thr_rt, "f-out-0", kr0, "thrh", NULL ); // thr->kr
|
|
182
|
+ cmDspSysInstallCb(h, thr_rt, "f-out-1", kr1, "thrh", NULL ); // thr->kr
|
|
183
|
+
|
|
184
|
+ cmDspSysInstallCb(h, upr_ctl, "val", upr_rt, "f-in", NULL );
|
|
185
|
+ cmDspSysInstallCb(h, achan, "ch", upr_rt, "sel", NULL ); // ach->rt sel
|
|
186
|
+ cmDspSysInstallCb(h, upr_rt, "f-out-0", kr0, "uprs", NULL ); // upr->kr
|
|
187
|
+ cmDspSysInstallCb(h, upr_rt, "f-out-1", kr1, "uprs", NULL ); // upr->kr
|
|
188
|
+
|
|
189
|
+ cmDspSysInstallCb(h, lwr_ctl, "val", lwr_rt, "f-in", NULL );
|
|
190
|
+ cmDspSysInstallCb(h, achan, "ch", lwr_rt, "sel", NULL ); // ach->rt sel
|
|
191
|
+ cmDspSysInstallCb(h, lwr_rt, "f-out-0", kr0, "lwrs", NULL ); // lwr->kr
|
|
192
|
+ cmDspSysInstallCb(h, lwr_rt, "f-out-1", kr1, "lwrs", NULL ); // lwr->kr
|
|
193
|
+
|
|
194
|
+ cmDspSysInstallCb(h, wet_ctl, "val", wet_rt, "f-in", NULL );
|
|
195
|
+ cmDspSysInstallCb(h, achan, "ch", wet_rt, "sel", NULL ); // ach->rt sel
|
|
196
|
+ cmDspSysInstallCb(h, wet_rt, "f-out-0", kr0, "wet", NULL ); // wet->kr
|
|
197
|
+ cmDspSysInstallCb(h, wet_rt, "f-out-1", kr1, "wet", NULL ); // wet->kr
|
|
198
|
+
|
|
199
|
+ cmDspSysInstallCb(h, cel_ctl, "val", cel_rt, "f-in", NULL );
|
|
200
|
+ cmDspSysInstallCb(h, achan, "ch", cel_rt, "sel", NULL ); // ach->rt sel
|
|
201
|
+ cmDspSysInstallCb(h, cel_rt, "f-out-0", kr0, "ceil", NULL ); // cel->kr
|
|
202
|
+ cmDspSysInstallCb(h, cel_rt, "f-out-1", kr1, "ceil", NULL ); // cel->kr
|
|
203
|
+
|
|
204
|
+ cmDspSysInstallCb(h, exp_ctl, "val", exp_rt, "f-in", NULL );
|
|
205
|
+ cmDspSysInstallCb(h, achan, "ch", exp_rt, "sel", NULL ); // ach->rt sel
|
|
206
|
+ cmDspSysInstallCb(h, exp_rt, "f-out-0", kr0, "expo", NULL ); // exp->kr
|
|
207
|
+ cmDspSysInstallCb(h, exp_rt, "f-out-1", kr1, "expo", NULL ); // exp->kr
|
|
208
|
+
|
|
209
|
+ cmDspSysInstallCb(h, mix_ctl, "val", mix_rt, "f-in", NULL );
|
|
210
|
+ cmDspSysInstallCb(h, achan, "ch", mix_rt, "sel", NULL ); // ach->rt sel
|
|
211
|
+ cmDspSysInstallCb(h, mix_rt, "f-out-0", kr0, "mix", NULL ); // mix->kr
|
|
212
|
+ cmDspSysInstallCb(h, mix_rt, "f-out-1", kr1, "mix", NULL ); // mix->kr
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+ cmDspSysNewColumn(h,0);
|
|
217
|
+ cmDspInst_t* cmp_byp = cmDspSysAllocCheckP( h, cmpPreGrpSymId, NULL, lbl("Bypass"), 1.0 );
|
|
218
|
+ cmDspInst_t* cmp_igain = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("In Gain"), 0.0, 10.0, 0.1, cmpInGain);
|
|
219
|
+ cmDspInst_t* cmp_thr = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("ThreshDb"), -100.0, 0.0, 0.1, cmpThreshDb);
|
|
220
|
+ cmDspInst_t* cmp_rat = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("Ratio"), 0.1, 100, 0.1, cmpRatio_num);
|
|
221
|
+ cmDspInst_t* cmp_atk = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("Atk Ms"), 0.0, 1000.0, 0.1, cmpAtkMs);
|
|
222
|
+ cmDspInst_t* cmp_rls = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("Rls Ms"), 0.0, 1000.0, 0.1, cmpRlsMs);
|
|
223
|
+ cmDspInst_t* cmp_mkup = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("Makeup"), 0.0, 10.0, 0.01, cmpMakeup);
|
|
224
|
+ cmDspInst_t* cmp_wnd = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, lbl("Wnd Ms"), 1.0, cmpWndMaxMs, 1.0, cmpWndMs );
|
|
225
|
+ cmDspInst_t* cmp_mtr = cmDspSysAllocInst(h,"Meter",lbl("Env"), 3, 0.0, 0.0, 1.0);
|
|
226
|
+
|
|
227
|
+ cmDspSysInstallCb(h, cmp_byp, "out", cmp, "bypass", NULL );
|
|
228
|
+ cmDspSysInstallCb(h, cmp_igain,"val", cmp, "igain", NULL );
|
|
229
|
+ cmDspSysInstallCb(h, cmp_thr, "val", cmp, "thr", NULL );
|
|
230
|
+ cmDspSysInstallCb(h, cmp_rat, "val", cmp, "ratio", NULL );
|
|
231
|
+ cmDspSysInstallCb(h, cmp_atk, "val", cmp, "atk", NULL );
|
|
232
|
+ cmDspSysInstallCb(h, cmp_rls, "val", cmp, "rls", NULL );
|
|
233
|
+ cmDspSysInstallCb(h, cmp_mkup, "val", cmp, "ogain", NULL );
|
|
234
|
+ cmDspSysInstallCb(h, cmp_wnd, "val", cmp, "wnd", NULL );
|
|
235
|
+ cmDspSysInstallCb(h, cmp, "env", cmp_mtr, "in", NULL );
|
|
236
|
+
|
|
237
|
+ cmDspSysInstallCb(h, modp, mlbl("cbyp"), cmp_byp, "in", NULL );
|
|
238
|
+ cmDspSysInstallCb(h, modp, mlbl("cigain"), cmp_igain,"val", NULL );
|
|
239
|
+ cmDspSysInstallCb(h, modp, mlbl("cthrsh"), cmp_thr, "val", NULL );
|
|
240
|
+ cmDspSysInstallCb(h, modp, mlbl("cratio"), cmp_rat, "val", NULL );
|
|
241
|
+ cmDspSysInstallCb(h, modp, mlbl("catkms"), cmp_atk, "val", NULL );
|
|
242
|
+ cmDspSysInstallCb(h, modp, mlbl("crlsms"), cmp_rls, "val", NULL );
|
|
243
|
+ cmDspSysInstallCb(h, modp, mlbl("cmakeup"), cmp_mkup, "val", NULL );
|
|
244
|
+ cmDspSysInstallCb(h, modp, mlbl("cwndms"), cmp_wnd, "val", NULL );
|
|
245
|
+
|
|
246
|
+ //
|
|
247
|
+ cmDspInst_t* xfadMs = cmDspSysAllocInst(h,"Scalar", lbl("Xfade Ms"), 5, kNumberDuiId, 0.0, 1000.0,0.01, 50.0 );
|
|
248
|
+ cmDspSysInstallCb(h, xfadMs, "val", xfad, "ms", NULL );
|
|
249
|
+ cmDspSysInstallCb(h, modp, mlbl("xfad"), xfadMs, "val", NULL);
|
|
250
|
+
|
|
251
|
+ //cmDspInst_t* sw_btn = cmDspSysAllocButton( h, lbl("switch"), 0);
|
|
252
|
+ //cmDspSysInstallCb( h, sw_btn, "sym", achan, "trig", NULL );
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+ // TODO: FIX THIS: can't send window length (e.g. 1024,2048, ... ) to a 'MsgList' with 4 elements
|
|
257
|
+ // since it expects an index betweeen 0 and 3. CRASH!
|
|
258
|
+ //cmDspSysInstallCb(h, modp, mlbl("win"), wnd_ctl, "sel", NULL );
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+ cmDspSysInstallCb(h, modp, mlbl("hop"), hop_ctl, "sel", NULL );
|
|
262
|
+ cmDspSysInstallCb(h, modp, mlbl("ceil"), cel_ctl, "val", NULL );
|
|
263
|
+ cmDspSysInstallCb(h, modp, mlbl("expo"), exp_ctl, "val", NULL );
|
|
264
|
+ cmDspSysInstallCb(h, modp, mlbl("mix"), mix_ctl, "val", NULL );
|
|
265
|
+ cmDspSysInstallCb(h, modp, mlbl("thr"), thr_ctl, "val", NULL );
|
|
266
|
+ cmDspSysInstallCb(h, modp, mlbl("upr"), upr_ctl, "val", NULL );
|
|
267
|
+ cmDspSysInstallCb(h, modp, mlbl("lwr"), lwr_ctl, "val", NULL );
|
|
268
|
+ cmDspSysInstallCb(h, modp, mlbl("wet"), wet_ctl, "val", NULL );
|
|
269
|
+ cmDspSysInstallCb(h, modp, mlbl("sw"), achan, "trig", NULL ); // See also: amp.sfloc->achan.trig
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+ c->achan = achan;
|
|
273
|
+ c->kr0 = kr0;
|
|
274
|
+ c->kr1 = kr1;
|
|
275
|
+ c->cmp = cmp;
|
|
276
|
+
|
|
277
|
+}
|
|
278
|
+
|
|
279
|
+
|