Browse Source

cmDspPgmKrTimeLineLite.c : More code simplifications.

master
kevin 8 years ago
parent
commit
e4e1443922
1 changed files with 15 additions and 143 deletions
  1. 15
    143
      dsp/cmDspPgmKrTimeLineLite.c

+ 15
- 143
dsp/cmDspPgmKrTimeLineLite.c View File

46
   cmErr_t   err;
46
   cmErr_t   err;
47
   krRsrc_t  r;
47
   krRsrc_t  r;
48
 
48
 
49
-  //unsigned  wtLoopCnt                = 1; // 1=play once (-1=loop forever)
50
-  //unsigned  wtInitMode               = 0; // initial wt mode is 'silence'
51
-  //unsigned  wtSmpCnt                 = floor(cmDspSysSampleRate(h)); // wt length == srate
52
-
53
   unsigned  sfBufCnt                 = 7;     // length of the MIDI event buffer
49
   unsigned  sfBufCnt                 = 7;     // length of the MIDI event buffer
54
   unsigned  sfMaxWndCnt              = 10;    // length of the score event buffer
50
   unsigned  sfMaxWndCnt              = 10;    // length of the score event buffer
55
   unsigned  sfMinVel                 = 5;     // ignore MIDI events below this velocity
51
   unsigned  sfMinVel                 = 5;     // ignore MIDI events below this velocity
56
   bool      sfEnaMeasFl              = false;
52
   bool      sfEnaMeasFl              = false;
57
 
53
 
58
-  double    recdPlayInitAllocSecs    = 10.0;
59
-  double    recdPlayMaxLaSecs        = 2.0;
60
-  double    recdPlayCurLaSecs        = 0.1;
61
-  double    recdPlayFadeRateDbPerSec = 4.0;
62
-
63
-
64
-  bool            apfBypassFl  = false;
65
-  unsigned        apfModeSymId  = cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"AP");
66
-  double          apfF0hz       = 100.0;
67
-  double          apfQ          = 1.0;
68
-  double          apfGain       = 1.0;
69
  
54
  
70
   memset(&r,0,sizeof(r));
55
   memset(&r,0,sizeof(r));
71
   cmErrSetup(&err,&cmCtx->rpt,"Kr TimelineLite");
56
   cmErrSetup(&err,&cmCtx->rpt,"Kr TimelineLite");
75
 
60
 
76
   cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 0);
61
   cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 0);
77
   cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 1);
62
   cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 1);
78
-  cmDspInst_t* ai2p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 2);
79
-  cmDspInst_t* ai3p = cmDspSysAllocInst(h,"AudioIn",     NULL,  1, 3);
80
-
81
-  cmDspInst_t* mx0p = cmDspSysAllocInst( h, "AMix",      NULL, 3, 2, 0.5, 0.5);
82
-  cmDspInst_t* mx1p = cmDspSysAllocInst( h, "AMix",      NULL, 3, 2, 0.5, 0.5);
83
-
63
+  
84
   cmDspInst_t* tlp  = cmDspSysAllocInst(h,"TimeLine",    "tl",  2, r.tlFn, r.tlPrefixPath );
64
   cmDspInst_t* tlp  = cmDspSysAllocInst(h,"TimeLine",    "tl",  2, r.tlFn, r.tlPrefixPath );
85
   cmDspInst_t* scp  = cmDspSysAllocInst(h,"Score",       "sc",  1, r.scFn );
65
   cmDspInst_t* scp  = cmDspSysAllocInst(h,"Score",       "sc",  1, r.scFn );
86
-  //cmDspInst_t* php  = cmDspSysAllocInst(h,"Phasor",      NULL,  1, cmDspSysSampleRate(h) );
87
-  //cmDspInst_t* wtp  = cmDspSysAllocInst(h,"WaveTable",   NULL,  4, wtSmpCnt, wtInitMode, NULL, wtLoopCnt );
88
   cmDspInst_t* pts  = cmDspSysAllocInst(h,"PortToSym",   NULL,  2, "on", "off" );
66
   cmDspInst_t* pts  = cmDspSysAllocInst(h,"PortToSym",   NULL,  2, "on", "off" );
89
-  //cmDspInst_t* mip  = cmDspSysAllocInst(h,"MidiIn",      NULL,  0 );
90
 
67
 
91
   cmDspInst_t* mfp  = cmDspSysAllocInst(h,"MidiFilePlay",NULL,  0 );
68
   cmDspInst_t* mfp  = cmDspSysAllocInst(h,"MidiFilePlay",NULL,  0 );
92
   cmDspInst_t* nmp  = cmDspSysAllocInst(h,"NanoMap",     NULL,  0 );
69
   cmDspInst_t* nmp  = cmDspSysAllocInst(h,"NanoMap",     NULL,  0 );
94
   cmDspInst_t* mo2p = cmDspSysAllocInst(h,"MidiOut",     NULL,  2, r.midiDevice,r.midiOutPort2);
71
   cmDspInst_t* mo2p = cmDspSysAllocInst(h,"MidiOut",     NULL,  2, r.midiDevice,r.midiOutPort2);
95
   cmDspInst_t* sfp  = cmDspSysAllocInst(h,"ScFol",       NULL,  1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
72
   cmDspInst_t* sfp  = cmDspSysAllocInst(h,"ScFol",       NULL,  1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
96
   cmDspInst_t* amp  = cmDspSysAllocInst(h,"ActiveMeas",  NULL,  1, 100 );
73
   cmDspInst_t* amp  = cmDspSysAllocInst(h,"ActiveMeas",  NULL,  1, 100 );
97
-  cmDspInst_t* rpp  = cmDspSysAllocInst(h,"RecdPlay",    NULL,  6, 2, r.scFn, recdPlayInitAllocSecs, recdPlayMaxLaSecs, recdPlayCurLaSecs, recdPlayFadeRateDbPerSec);
98
   cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
74
   cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
99
-  cmDspInst_t* modr = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
100
  
75
  
101
   unsigned   preGrpSymId     = cmDspSysPresetRegisterGroup(h,"tl");
76
   unsigned   preGrpSymId     = cmDspSysPresetRegisterGroup(h,"tl");
102
   unsigned   cmpPreGrpSymId  = cmDspSysPresetRegisterGroup(h,"tl_cmp"); 
77
   unsigned   cmpPreGrpSymId  = cmDspSysPresetRegisterGroup(h,"tl_cmp"); 
110
   _cmDspSys_TlXformChain(h, &c1, preGrpSymId, cmpPreGrpSymId, modp, 1, 1 );
85
   _cmDspSys_TlXformChain(h, &c1, preGrpSymId, cmpPreGrpSymId, modp, 1, 1 );
111
 
86
 
112
 
87
 
113
-  cmDspInst_t* apf0 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+0, apfQ, apfGain  ); 
114
-  cmDspInst_t* apf1 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+100.0, apfQ, apfGain  ); 
115
-  cmDspInst_t* apf2 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+200.0, apfQ, apfGain  ); 
116
-  cmDspInst_t* apf3 =  cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+300.0, apfQ, apfGain  ); 
117
-
118
   cmDspInst_t* ao0p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 2 );
88
   cmDspInst_t* ao0p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 2 );
119
   cmDspInst_t* ao1p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 3 );
89
   cmDspInst_t* ao1p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 3 );
120
-  cmDspInst_t* ao2p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 4 );
121
-  cmDspInst_t* ao3p = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 5 );
122
 
90
 
123
   cmDspSysNewPage(h,"Main");
91
   cmDspSysNewPage(h,"Main");
124
   cmDspInst_t* liveb= cmDspSysAllocInst(h,"Button", "live",    2, kCheckDuiId,  0.0 );
92
   cmDspInst_t* liveb= cmDspSysAllocInst(h,"Button", "live",    2, kCheckDuiId,  0.0 );
127
   cmDspInst_t* measb= cmDspSysAllocInst(h,"Button", "meas",    2, kCheckDuiId,  0.0 );
95
   cmDspInst_t* measb= cmDspSysAllocInst(h,"Button", "meas",    2, kCheckDuiId,  0.0 );
128
   cmDspInst_t* onb  = cmDspSysAllocInst(h,"Button", "start",   2, kButtonDuiId, 1.0 );
96
   cmDspInst_t* onb  = cmDspSysAllocInst(h,"Button", "start",   2, kButtonDuiId, 1.0 );
129
   cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop",    2, kButtonDuiId, 1.0 );
97
   cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop",    2, kButtonDuiId, 1.0 );
130
-  //cmDspInst_t* prtb = cmDspSysAllocInst(h,"Button", "print",   2, kButtonDuiId, 1.0 );
131
-  //cmDspInst_t* qtb  = cmDspSysAllocInst(h,"Button", "quiet",   2, kButtonDuiId, 1.0 );
132
   cmDspInst_t* prp  = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
98
   cmDspInst_t* prp  = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
133
   cmDspInst_t* prd  = cmDspSysAllocInst(h,"Printer", NULL,   1, "DYN:" );
99
   cmDspInst_t* prd  = cmDspSysAllocInst(h,"Printer", NULL,   1, "DYN:" );
134
   cmDspInst_t* pre  = cmDspSysAllocInst(h,"Printer", NULL,   1, "EVEN:" );
100
   cmDspInst_t* pre  = cmDspSysAllocInst(h,"Printer", NULL,   1, "EVEN:" );
135
   cmDspInst_t* prt  = cmDspSysAllocInst(h,"Printer", NULL,   1, "TEMPO:");
101
   cmDspInst_t* prt  = cmDspSysAllocInst(h,"Printer", NULL,   1, "TEMPO:");
136
   cmDspInst_t* prc  = cmDspSysAllocInst(h,"Printer", NULL,   1, "COST:");
102
   cmDspInst_t* prc  = cmDspSysAllocInst(h,"Printer", NULL,   1, "COST:");
137
-  //cmDspInst_t* prv  = cmDspSysAllocInst(h,"Printer", NULL,   1, "Value:");
138
 
103
 
139
   // Record <-> Live switches
104
   // Record <-> Live switches
140
   cmDspInst_t* tlRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);  // time line swich
105
   cmDspInst_t* tlRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);  // time line swich
141
-  //cmDspInst_t* wtRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
142
   cmDspInst_t* mfpRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
106
   cmDspInst_t* mfpRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
143
   cmDspInst_t* amRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
107
   cmDspInst_t* amRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
144
   cmDspInst_t* au0Sw = cmDspSysAllocInst(h,"1ofN",   NULL, 2, 2, 0);
108
   cmDspInst_t* au0Sw = cmDspSysAllocInst(h,"1ofN",   NULL, 2, 2, 0);
153
   cmDspSysNewColumn(h,0);
117
   cmDspSysNewColumn(h,0);
154
   cmDspInst_t* igain0 = cmDspSysAllocInst(h,"Scalar", "In Gain-0",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
118
   cmDspInst_t* igain0 = cmDspSysAllocInst(h,"Scalar", "In Gain-0",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
155
   cmDspInst_t* igain1 = cmDspSysAllocInst(h,"Scalar", "In Gain-1",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
119
   cmDspInst_t* igain1 = cmDspSysAllocInst(h,"Scalar", "In Gain-1",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
156
-  cmDspInst_t* igain2 = cmDspSysAllocInst(h,"Scalar", "In Gain-2",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
157
-  cmDspInst_t* igain3 = cmDspSysAllocInst(h,"Scalar", "In Gain-3",    5, kNumberDuiId, 0.0,   100.0,0.01,   1.0 );  
158
-
159
-  cmDspInst_t* lasecs = cmDspSysAllocInst(h,"Scalar", "LA Secs",      5, kNumberDuiId, 0.0,   recdPlayMaxLaSecs,0.01,   recdPlayCurLaSecs );  
160
-  cmDspInst_t* dbpsec = cmDspSysAllocInst(h,"Scalar", "Fade dBpSec",  5, kNumberDuiId, 0.0,   24.0, 0.01, recdPlayFadeRateDbPerSec);
161
-  cmDspInst_t* apfByp = cmDspSysAllocCheck(  h, "APF-Bypass", 0.0 );
162
-
163
-
164
 
120
 
165
   cmDspSysNewColumn(h,0);
121
   cmDspSysNewColumn(h,0);
166
   cmDspInst_t* ogain0 = cmDspSysAllocInst(h,"Scalar", "Out Gain-0",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
122
   cmDspInst_t* ogain0 = cmDspSysAllocInst(h,"Scalar", "Out Gain-0",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
167
   cmDspInst_t* ogain1 = cmDspSysAllocInst(h,"Scalar", "Out Gain-1",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
123
   cmDspInst_t* ogain1 = cmDspSysAllocInst(h,"Scalar", "Out Gain-1",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
168
-  cmDspInst_t* ogain2 = cmDspSysAllocInst(h,"Scalar", "Out Gain-2",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
169
-  cmDspInst_t* ogain3 = cmDspSysAllocInst(h,"Scalar", "Out Gain-3",   5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
170
-
171
-  //cmDspInst_t* scLoc = cmDspSysAllocInst(h,"Scalar", "Sc Loc",   5, kNumberDuiId, 0.0,   3000.0, 1.0,   0.0 );  
172
 
124
 
173
   // Audio file recording
125
   // Audio file recording
174
   cmDspInst_t* recdGain= cmDspSysAllocInst(h,"Scalar", "Recd Gain",  5, kNumberDuiId, 0.0,   100.0,0.01, 1.5 );  
126
   cmDspInst_t* recdGain= cmDspSysAllocInst(h,"Scalar", "Recd Gain",  5, kNumberDuiId, 0.0,   100.0,0.01, 1.5 );  
177
   cmDspInst_t* afop    = cmDspSysAllocInst(h,"AudioFileOut",NULL,    2, r.recordDir,2);
129
   cmDspInst_t* afop    = cmDspSysAllocInst(h,"AudioFileOut",NULL,    2, r.recordDir,2);
178
   cmDspInst_t* mi0p    = cmDspSysAllocInst(h,"AMeter","In 0",  0);
130
   cmDspInst_t* mi0p    = cmDspSysAllocInst(h,"AMeter","In 0",  0);
179
   cmDspInst_t* mi1p    = cmDspSysAllocInst(h,"AMeter","In 1",  0);
131
   cmDspInst_t* mi1p    = cmDspSysAllocInst(h,"AMeter","In 1",  0);
180
-  cmDspInst_t* mi2p    = cmDspSysAllocInst(h,"AMeter","In 2",  0);
181
-  cmDspInst_t* mi3p    = cmDspSysAllocInst(h,"AMeter","In 3",  0);
182
 
132
 
183
 
133
 
184
   //--------------- Preset controls
134
   //--------------- Preset controls
202
   cmDspInst_t* mlst    = cmDspSysAllocInst(   h, "MsgList",   NULL, 3, "meas", r.measFn, 2);
152
   cmDspInst_t* mlst    = cmDspSysAllocInst(   h, "MsgList",   NULL, 3, "meas", r.measFn, 2);
203
   cmDspInst_t* amCmd   = cmDspSysAllocInst(   h, "PortToSym", NULL, 2, "add", "rewind" );  
153
   cmDspInst_t* amCmd   = cmDspSysAllocInst(   h, "PortToSym", NULL, 2, "add", "rewind" );  
204
 
154
 
205
-
206
-
207
-
208
   if((rc = cmDspSysLastRC(h)) != kOkDspRC )
155
   if((rc = cmDspSysLastRC(h)) != kOkDspRC )
209
     return rc;
156
     return rc;
210
 
157
 
217
 
164
 
218
 
165
 
219
   // Audio connections
166
   // Audio connections
220
-  //cmDspSysConnectAudio(h, php,  "out",   wtp,  "phs" );     // phs -> wt
221
-
222
-  cmDspSysConnectAudio( h, ai0p, "out", mi0p, "in");
223
-  cmDspSysConnectAudio( h, ai1p, "out", mi1p, "in");
224
-  cmDspSysConnectAudio( h, ai2p, "out", mi2p, "in");
225
-  cmDspSysConnectAudio( h, ai3p, "out", mi3p, "in");
226
-
227
-
228
-  cmDspSysConnectAudio(h, ai0p, "out", mx0p, "in-0" );  // eqmix -> input mix
229
-  cmDspSysConnectAudio(h, ai1p, "out", mx1p, "in-0" );
230
-  cmDspSysConnectAudio(h, ai2p, "out", mx0p, "in-1" );
231
-  cmDspSysConnectAudio(h, ai3p, "out", mx1p, "in-1" );
232
-
233
-  cmDspSysConnectAudio(h, mx0p,  "out", rpp,   "in-0");    // sw  -> rcdply
234
-
235
-
236
-  cmDspSysConnectAudio(h, mx0p,   "out",   c0.kr0, "in" ); // ain -> sw
237
-
238
-
239
-  cmDspSysConnectAudio(h, c0.cmp, "out", apf0, "in" );
240
-  cmDspSysConnectAudio(h, c0.cmp, "out", apf2, "in" );
241
-  cmDspSysConnectAudio(h, apf0,  "out", ao0p,  "in" );
242
-  cmDspSysConnectAudio(h, apf2,  "out", ao2p,  "in" );
243
-
244
-
245
-  cmDspSysConnectAudio(h, mx1p,  "out", rpp,   "in-1");    // sw  -> rcdply
246
-
247
-  cmDspSysConnectAudio(h, mx1p,   "out",   c1.kr0, "in" ); // ain -> sw
248
-
249
-
250
-  cmDspSysConnectAudio(h, c1.cmp, "out",   apf1,  "in" );   // cmp -> mix 0
251
-  cmDspSysConnectAudio(h, c1.cmp, "out",   apf3,  "in" );   // cmp -> mix 0
252
-  cmDspSysConnectAudio(h, apf1,  "out",   ao1p,   "in" );
253
-  cmDspSysConnectAudio(h, apf3,  "out",   ao3p,   "in" );
254
-
255
-  cmDspSysConnectAudio(h, c0.cmp, "out", afop, "in0" );    // comp -> audio_file_out
256
-  cmDspSysConnectAudio(h, c1.cmp, "out", afop, "in1" );
257
-
167
+  cmDspSysConnectAudio( h, ai0p,   "out", mi0p,   "in" );  //
168
+  cmDspSysConnectAudio( h, ai0p,   "out", c0.kr0, "in" );  // ain -> ch0.kr0
169
+  cmDspSysConnectAudio( h, ai0p,   "out", c0.kr1, "in" );  // ain -> ch0.kr1
170
+  cmDspSysConnectAudio( h, c0.cmp, "out", ao0p,   "in" );  // ch0.cmp -> aout
171
+  cmDspSysConnectAudio( h, c0.cmp, "out", afop,   "in0");  // ch0.cmp -> audio_file_out
172
+
173
+  cmDspSysConnectAudio( h, ai1p,   "out",   mi1p,   "in" );  //
174
+  cmDspSysConnectAudio( h, ai1p,   "out",   c1.kr0, "in" );  // ain -> ch1.kr0
175
+  cmDspSysConnectAudio( h, ai1p,   "out",   c1.kr1, "in" );  // ain -> ch1.kr1
176
+  cmDspSysConnectAudio( h, c1.cmp, "out",   ao1p,   "in" );  // ch1.cmp -> aout
177
+  cmDspSysConnectAudio( h, c1.cmp, "out",   afop,   "in1");  // ch1.cmp ->audio_file_out
178
+  
258
   //cmDspSysConnectAudio(h, ai0p, "out", afop, "in0" );    // comp -> audio_file_out
179
   //cmDspSysConnectAudio(h, ai0p, "out", afop, "in0" );    // comp -> audio_file_out
259
   //cmDspSysConnectAudio(h, ai1p, "out", afop, "in1" );
180
   //cmDspSysConnectAudio(h, ai1p, "out", afop, "in1" );
260
 
181
 
261
-  //cmDspSysConnectAudio(h, ai0p, "out", ao2p, "in" );     // direct through from input to 
262
-  //cmDspSysConnectAudio(h, ai1p, "out", ao3p, "in" );     //    output chs 2&3
263
-
264
-
182
+  //cmDspSysConnectAudio(h, ai0p, "out", ao0p, "in" );     // direct through from ain to aout
183
+  //cmDspSysConnectAudio(h, ai1p, "out", ao1p, "in" );     //    
265
 
184
 
266
 
185
 
267
   cmDspSysInstallCb( h, clrBtn, "sym",    amp, "cmd",   NULL ); // clear active meas.
186
   cmDspSysInstallCb( h, clrBtn, "sym",    amp, "cmd",   NULL ); // clear active meas.
331
   cmDspSysInstallCb(h, mfpRt,"s-out-0",mfp,  "sel",   NULL );
250
   cmDspSysInstallCb(h, mfpRt,"s-out-0",mfp,  "sel",   NULL );
332
 
251
 
333
   cmDspSysInstallCb(h, onb, "sym",     pts,   "on",    NULL );
252
   cmDspSysInstallCb(h, onb, "sym",     pts,   "on",    NULL );
334
-  //cmDspSysInstallCb(h, pts, "on",      wtRt,  "s-in",  NULL );
335
-  //cmDspSysInstallCb(h, wtRt,"s-out-0", wtp,   "cmd",   NULL );
336
   cmDspSysInstallCb(h, pts, "on",      modp,  "cmd",   NULL );
253
   cmDspSysInstallCb(h, pts, "on",      modp,  "cmd",   NULL );
337
-  cmDspSysInstallCb(h, pts, "on",      modr,  "cmd",   NULL );
338
-  cmDspSysInstallCb(h, pts, "on",      rpp,   "cmd",   NULL );
339
   cmDspSysInstallCb(h, onb, "sym",     amCmd, "rewind",NULL );
254
   cmDspSysInstallCb(h, onb, "sym",     amCmd, "rewind",NULL );
340
   cmDspSysInstallCb(h, onb, "out",     c0.achan,"reset",  NULL );
255
   cmDspSysInstallCb(h, onb, "out",     c0.achan,"reset",  NULL );
341
   cmDspSysInstallCb(h, onb, "out",     c1.achan,"reset",  NULL );
256
   cmDspSysInstallCb(h, onb, "out",     c1.achan,"reset",  NULL );
342
 
257
 
343
   // stop connections
258
   // stop connections
344
-  //cmDspSysInstallCb(h, wtp,  "done",offb,"in",  NULL ); // 'done' from WT simulates pressing Stop btn.
345
   cmDspSysInstallCb(h, tlp,  "mfn", pts, "off", NULL ); // Prevents WT start on new audio file from TL.
259
   cmDspSysInstallCb(h, tlp,  "mfn", pts, "off", NULL ); // Prevents WT start on new audio file from TL.
346
   cmDspSysInstallCb(h, offb, "sym", mfp, "sel", NULL ); 
260
   cmDspSysInstallCb(h, offb, "sym", mfp, "sel", NULL ); 
347
   cmDspSysInstallCb(h, offb, "sym", pts, "off", NULL );
261
   cmDspSysInstallCb(h, offb, "sym", pts, "off", NULL );
348
-  //cmDspSysInstallCb(h, pts,  "off", wtp, "cmd", NULL );
349
   cmDspSysInstallCb(h, pts,  "off", modp,"cmd", NULL );
262
   cmDspSysInstallCb(h, pts,  "off", modp,"cmd", NULL );
350
-  cmDspSysInstallCb(h, pts,  "off", modr,"cmd", NULL );
351
   cmDspSysInstallCb(h, offb, "sym", mop, "reset", NULL );
263
   cmDspSysInstallCb(h, offb, "sym", mop, "reset", NULL );
352
   cmDspSysInstallCb(h, offb, "sym", mo2p, "reset", NULL );
264
   cmDspSysInstallCb(h, offb, "sym", mo2p, "reset", NULL );
353
 
265
 
354
 
266
 
355
-  // time-line to wave-table selection 
356
-  //cmDspSysInstallCb(h, tlp, "absi", wtp, "beg", NULL );  
357
-  //cmDspSysInstallCb(h, tlp, "aesi", wtp, "end", NULL );
358
-  //cmDspSysInstallCb(h, tlp, "afn",  wtp, "fn",  NULL );
359
-
360
   // time-line to MIDI file player selection
267
   // time-line to MIDI file player selection
361
   cmDspSysInstallCb(h, tlp, "mbsi", mfp, "bsi",   NULL );
268
   cmDspSysInstallCb(h, tlp, "mbsi", mfp, "bsi",   NULL );
362
   cmDspSysInstallCb(h, tlp, "mesi", mfp, "esi",   NULL );
269
   cmDspSysInstallCb(h, tlp, "mesi", mfp, "esi",   NULL );
365
   // score to score follower - to set initial search location
272
   // score to score follower - to set initial search location
366
   cmDspSysInstallCb(h, scp, "sel",    sfp, "index",  NULL );
273
   cmDspSysInstallCb(h, scp, "sel",    sfp, "index",  NULL );
367
   cmDspSysInstallCb(h, scp, "sel",    modp,"reset", NULL );
274
   cmDspSysInstallCb(h, scp, "sel",    modp,"reset", NULL );
368
-  cmDspSysInstallCb(h, scp, "sel",    modr,"reset", NULL );
369
-  cmDspSysInstallCb(h, scp, "sel",    rpp, "initIdx", NULL );
370
   cmDspSysInstallCb(h, scp, "sel",    prp, "in", NULL );
275
   cmDspSysInstallCb(h, scp, "sel",    prp, "in", NULL );
371
 
276
 
372
-  // NOTE: THIS IS A DUPLICATE OF THE scp.sel CONNECTIONS
373
-  /*
374
-    cmDspSysInstallCb(h, scLoc, "val",    sfp, "index",  NULL );
375
-    cmDspSysInstallCb(h, scLoc, "val",    modp,"reset", NULL );
376
-    cmDspSysInstallCb(h, scLoc, "val",    modr,"reset", NULL );
377
-    cmDspSysInstallCb(h, scLoc, "val",    rpp, "initIdx", NULL );
378
-    cmDspSysInstallCb(h, scLoc, "val",    prp, "in", NULL );
379
-  */
380
-
381
-  //cmDspSysInstallCb(h, reload,"out",  modp, "reload", NULL );
382
-
383
-
384
   // MIDI file player to score follower
277
   // MIDI file player to score follower
385
   cmDspSysInstallCb(h, mfp,  "smpidx",  siRt, "f-in",NULL );
278
   cmDspSysInstallCb(h, mfp,  "smpidx",  siRt, "f-in",NULL );
386
   cmDspSysInstallCb(h, siRt, "f-out-1", sfp,  "smpidx",NULL ); 
279
   cmDspSysInstallCb(h, siRt, "f-out-1", sfp,  "smpidx",NULL ); 
416
   //cmDspSysInstallCb(h, mip, "status", sfp, "status", NULL );
309
   //cmDspSysInstallCb(h, mip, "status", sfp, "status", NULL );
417
 
310
 
418
   // score follower to recd_play,modulator and printers
311
   // score follower to recd_play,modulator and printers
419
-  //cmDspSysInstallCb(h, sfp, "out",     rpp,     "index", NULL );
420
   cmDspSysInstallCb(h, sfp, "out",     modp,    "index", NULL );
312
   cmDspSysInstallCb(h, sfp, "out",     modp,    "index", NULL );
421
-  //cmDspSysInstallCb(h, sfp, "out",     modr,    "index", NULL );
422
   cmDspSysInstallCb(h, sfp, "recent",  prp,     "in",  NULL );  // report 'recent' but only act on 'max' loc index
313
   cmDspSysInstallCb(h, sfp, "recent",  prp,     "in",  NULL );  // report 'recent' but only act on 'max' loc index
423
 
314
 
424
-  //cmDspSysInstallCb(h, prtb, "sym", sfp, "cmd", NULL );
425
-  //cmDspSysInstallCb(h, qtb,  "sym", sfp, "cmd", NULL );
426
-
427
-
428
-  cmDspSysInstallCb(   h, lasecs, "val", rpp, "curla", NULL ); // recd/play control
429
-  cmDspSysInstallCb(   h, dbpsec, "val", rpp, "frate", NULL );
430
-
431
   cmDspSysInstallCb(h, igain0, "val", ai0p, "gain", NULL );   // input gain control
315
   cmDspSysInstallCb(h, igain0, "val", ai0p, "gain", NULL );   // input gain control
432
   cmDspSysInstallCb(h, igain1, "val", ai1p, "gain", NULL );
316
   cmDspSysInstallCb(h, igain1, "val", ai1p, "gain", NULL );
433
-  cmDspSysInstallCb(h, igain2, "val", ai2p, "gain", NULL );   // input gain control
434
-  cmDspSysInstallCb(h, igain3, "val", ai3p, "gain", NULL );
435
-
436
-  cmDspSysInstallCb(h, apfByp, "out", apf0, "bypass", NULL );   // APF bypass
437
-  cmDspSysInstallCb(h, apfByp, "out", apf1, "bypass", NULL );   // 
438
-  cmDspSysInstallCb(h, apfByp, "out", apf2, "bypass", NULL );   // 
439
-  cmDspSysInstallCb(h, apfByp, "out", apf3, "bypass", NULL );   // 
440
-
441
 
317
 
442
   cmDspSysInstallCb(h, ogain0, "val", ao0p, "gain", NULL );   // output gain control
318
   cmDspSysInstallCb(h, ogain0, "val", ao0p, "gain", NULL );   // output gain control
443
   cmDspSysInstallCb(h, ogain1, "val", ao1p, "gain", NULL );
319
   cmDspSysInstallCb(h, ogain1, "val", ao1p, "gain", NULL );
444
-  cmDspSysInstallCb(h, ogain2, "val", ao2p, "gain", NULL );
445
-  cmDspSysInstallCb(h, ogain3, "val", ao3p, "gain", NULL );
446
-
447
-
448
 
320
 
449
 
321
 
450
   return rc;
322
   return rc;

Loading…
Cancel
Save