Browse Source

cmDspPgmKr.c : Added Input gain control and all-notes-off command on the

off button (it's not clear that all-notes-off actually works.).
master
kevin 11 years ago
parent
commit
9082a45c41
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      dsp/cmDspPgmKr.c

+ 10
- 0
dsp/cmDspPgmKr.c View File

@@ -241,6 +241,11 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
241 241
   cmDspSysInstallCb( h, mlst,   "typeId", amCmd, "add", NULL );
242 242
   cmDspSysInstallCb( h, sfp,    "out",    amRt, "f-in", NULL );
243 243
   cmDspSysInstallCb( h, amRt,   "f-out-0",amp, "sfloc", NULL );
244
+
245
+  // ***** delete this to prevent the score follower from driving the active-measure unit in 'live' mode
246
+  cmDspSysInstallCb( h, amRt,   "f-out-1",amp, "sfloc", NULL );
247
+  // *****
248
+
244 249
   cmDspSysInstallCb( h, amp,    "even",   pre, "in", NULL );
245 250
   cmDspSysInstallCb( h, amp,    "dyn",    prd, "in", NULL );
246 251
   cmDspSysInstallCb( h, amp,    "tempo",  prt, "in", NULL );
@@ -278,6 +283,8 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
278 283
 
279 284
   cmDspSysNewColumn(h,0);
280 285
 
286
+  cmDspInst_t* igain0 = cmDspSysAllocInst(h,"Scalar", "In Gain-0",    5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
287
+  cmDspInst_t* igain1 = cmDspSysAllocInst(h,"Scalar", "In Gain-1",    5, kNumberDuiId, 0.0,   10.0,0.01,   1.0 );  
281 288
   cmDspInst_t* ogain0 = cmDspSysAllocInst(h,"Scalar", "Out Gain-0",   5, kNumberDuiId, 0.0,   10.0,0.01,   3.0 );  
282 289
   cmDspInst_t* ogain1 = cmDspSysAllocInst(h,"Scalar", "Out Gain-1",   5, kNumberDuiId, 0.0,   10.0,0.01,   3.0 );  
283 290
   cmDspInst_t* xfadMs = cmDspSysAllocInst(h,"Scalar", "Xfade Ms",     5, kNumberDuiId, 0.0,   1000.0,0.01, 50.0 );  
@@ -433,6 +440,7 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
433 440
   cmDspSysInstallCb(h, offb, "sym", pts, "off", NULL );
434 441
   cmDspSysInstallCb(h, pts,  "off", wtp, "cmd", NULL );
435 442
   cmDspSysInstallCb(h, pts,  "off", modp,"cmd", NULL );
443
+  cmDspSysInstallCb(h, offb, "sym", mop, "reset", NULL );
436 444
 
437 445
   // time-line to wave-table selection 
438 446
   cmDspSysInstallCb(h, tlp, "absi", wtp, "beg", NULL );  
@@ -513,6 +521,8 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
513 521
   cmDspSysInstallCb(h, iv10p,     "val",   kr11, "invt", NULL );   // invert->kr
514 522
   cmDspSysInstallCb(h, wet10p,    "val",   kr11, "wet", NULL );    //  wet->kr
515 523
 
524
+  cmDspSysInstallCb(h, igain0, "val", ai0p, "gain", NULL );   // output gain control
525
+  cmDspSysInstallCb(h, igain1, "val", ai1p, "gain", NULL );
516 526
   cmDspSysInstallCb(h, ogain0, "val", ao0p, "gain", NULL );   // output gain control
517 527
   cmDspSysInstallCb(h, ogain1, "val", ao1p, "gain", NULL );
518 528
   cmDspSysInstallCb(h, xfadMs, "val", fad0, "ms", NULL );

Loading…
Cancel
Save