cmDspPgmKrChain2.c,cmDspPgmKrTimeLineLiteAf.c : many changes to refine output.
This commit is contained in:
parent
c9dc494178
commit
4edc0c968d
@ -105,6 +105,7 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
|
|||||||
unsigned paramRtChCnt = 2;
|
unsigned paramRtChCnt = 2;
|
||||||
cmDspInst_t* wnd_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
cmDspInst_t* wnd_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
||||||
cmDspInst_t* hop_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
cmDspInst_t* hop_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
||||||
|
cmDspInst_t* ign_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
||||||
cmDspInst_t* cel_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
cmDspInst_t* cel_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
||||||
cmDspInst_t* exp_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
cmDspInst_t* exp_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
||||||
cmDspInst_t* mix_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
cmDspInst_t* mix_rt = cmDspSysAllocInst(h, "Router", NULL, 2, paramRtChCnt, paramRtChCnt-1 );
|
||||||
@ -120,6 +121,8 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
|
|||||||
cmDspInst_t* mix = cmDspSysAllocInst(h, "AMix", NULL, 3, xfadeChCnt, mixGain, mixGain );
|
cmDspInst_t* mix = cmDspSysAllocInst(h, "AMix", NULL, 3, xfadeChCnt, mixGain, mixGain );
|
||||||
cmDspInst_t* cmp = cmDspSysAllocInst(h, "Compressor", NULL, 8, cmpBypassFl, cmpThreshDb, cmpRatio_num, cmpAtkMs, cmpRlsMs, cmpMakeup, cmpWndMs, cmpWndMaxMs );
|
cmDspInst_t* cmp = cmDspSysAllocInst(h, "Compressor", NULL, 8, cmpBypassFl, cmpThreshDb, cmpRatio_num, cmpAtkMs, cmpRlsMs, cmpMakeup, cmpWndMs, cmpWndMaxMs );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Internal audio connections
|
// Internal audio connections
|
||||||
cmDspSysConnectAudio(h, kr0, "out", xfad, "in-0");
|
cmDspSysConnectAudio(h, kr0, "out", xfad, "in-0");
|
||||||
cmDspSysConnectAudio(h, kr1, "out", xfad, "in-1");
|
cmDspSysConnectAudio(h, kr1, "out", xfad, "in-1");
|
||||||
@ -158,6 +161,7 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
|
|||||||
cmDspSysNewColumn(h,0);
|
cmDspSysNewColumn(h,0);
|
||||||
cmDspInst_t* wnd_ctl = cmDspSysAllocMsgListP(h,preGrpSymId,NULL, lbl("WndSmpCnt"), NULL, "wndSmpCnt", 2);
|
cmDspInst_t* wnd_ctl = cmDspSysAllocMsgListP(h,preGrpSymId,NULL, lbl("WndSmpCnt"), NULL, "wndSmpCnt", 2);
|
||||||
cmDspInst_t* hop_ctl = cmDspSysAllocMsgListP(h,preGrpSymId,NULL, lbl("HopFact"), NULL, "hopFact", 2);
|
cmDspInst_t* hop_ctl = cmDspSysAllocMsgListP(h,preGrpSymId,NULL, lbl("HopFact"), NULL, "hopFact", 2);
|
||||||
|
cmDspInst_t* ign_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("In Gain"), 0.0, 10.0, 0.001, 1.0 );
|
||||||
cmDspInst_t* cel_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Ceiling"), 0.0, 100.0, 0.1, 30.0 );
|
cmDspInst_t* cel_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Ceiling"), 0.0, 100.0, 0.1, 30.0 );
|
||||||
cmDspInst_t* exp_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Expo"), -10.0, 10.0, 0.01, 2.0 );
|
cmDspInst_t* exp_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Expo"), -10.0, 10.0, 0.01, 2.0 );
|
||||||
cmDspInst_t* mix_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Mix"), 0.0, 1.0, 0.01, 0.0 );
|
cmDspInst_t* mix_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Mix"), 0.0, 1.0, 0.01, 0.0 );
|
||||||
@ -166,7 +170,6 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
|
|||||||
cmDspInst_t* lwr_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Lwr slope"), 0.3, 10.0, 0.01, 2.0 );
|
cmDspInst_t* lwr_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Lwr slope"), 0.3, 10.0, 0.01, 2.0 );
|
||||||
cmDspInst_t* wet_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Wet Dry"), 0.0, 1.0, 0.001, 1.0 );
|
cmDspInst_t* wet_ctl = cmDspSysAllocScalarP( h,preGrpSymId,NULL, lbl("Wet Dry"), 0.0, 1.0, 0.001, 1.0 );
|
||||||
|
|
||||||
|
|
||||||
cmDspSysInstallCb(h, wnd_ctl, "out", wnd_rt, "f-in", NULL );
|
cmDspSysInstallCb(h, wnd_ctl, "out", wnd_rt, "f-in", NULL );
|
||||||
cmDspSysInstallCb(h, achan, "ch", wnd_rt, "sel", NULL ); // ach->rt sel
|
cmDspSysInstallCb(h, achan, "ch", wnd_rt, "sel", NULL ); // ach->rt sel
|
||||||
cmDspSysInstallCb(h, wnd_rt, "f-out-0", kr0, "wndn", NULL ); // wndn->kr
|
cmDspSysInstallCb(h, wnd_rt, "f-out-0", kr0, "wndn", NULL ); // wndn->kr
|
||||||
@ -177,6 +180,11 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
|
|||||||
cmDspSysInstallCb(h, hop_rt, "f-out-0", kr0, "hopf", NULL ); // hopf->kr
|
cmDspSysInstallCb(h, hop_rt, "f-out-0", kr0, "hopf", NULL ); // hopf->kr
|
||||||
cmDspSysInstallCb(h, hop_rt, "f-out-1", kr1, "hopf", NULL ); // hopf->kr
|
cmDspSysInstallCb(h, hop_rt, "f-out-1", kr1, "hopf", NULL ); // hopf->kr
|
||||||
|
|
||||||
|
cmDspSysInstallCb(h, ign_ctl, "val", ign_rt, "f-in", NULL );
|
||||||
|
cmDspSysInstallCb(h, achan, "ch", ign_rt, "sel", NULL ); // ach->rt sel
|
||||||
|
cmDspSysInstallCb(h, ign_rt, "f-out-0", kr0, "igain", NULL ); // ign->kr
|
||||||
|
cmDspSysInstallCb(h, ign_rt, "f-out-1", kr1, "igain", NULL ); // ign->kr
|
||||||
|
|
||||||
cmDspSysInstallCb(h, thr_ctl, "val", thr_rt, "f-in", NULL );
|
cmDspSysInstallCb(h, thr_ctl, "val", thr_rt, "f-in", NULL );
|
||||||
cmDspSysInstallCb(h, achan, "ch", thr_rt, "sel", NULL ); // ach->rt sel
|
cmDspSysInstallCb(h, achan, "ch", thr_rt, "sel", NULL ); // ach->rt sel
|
||||||
cmDspSysInstallCb(h, thr_rt, "f-out-0", kr0, "thrh", NULL ); // thr->kr
|
cmDspSysInstallCb(h, thr_rt, "f-out-0", kr0, "thrh", NULL ); // thr->kr
|
||||||
@ -260,6 +268,7 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
|
|||||||
|
|
||||||
|
|
||||||
cmDspSysInstallCb(h, modp, mlbl("hop"), hop_ctl, "sel", NULL );
|
cmDspSysInstallCb(h, modp, mlbl("hop"), hop_ctl, "sel", NULL );
|
||||||
|
cmDspSysInstallCb(h, modp, mlbl("ign"), ign_ctl, "val", NULL );
|
||||||
cmDspSysInstallCb(h, modp, mlbl("ceil"), cel_ctl, "val", NULL );
|
cmDspSysInstallCb(h, modp, mlbl("ceil"), cel_ctl, "val", NULL );
|
||||||
cmDspSysInstallCb(h, modp, mlbl("expo"), exp_ctl, "val", NULL );
|
cmDspSysInstallCb(h, modp, mlbl("expo"), exp_ctl, "val", NULL );
|
||||||
cmDspSysInstallCb(h, modp, mlbl("mix"), mix_ctl, "val", NULL );
|
cmDspSysInstallCb(h, modp, mlbl("mix"), mix_ctl, "val", NULL );
|
||||||
|
@ -83,6 +83,9 @@ cmDspRC_t _cmDspSysPgm_TimeLineLiteAf(cmDspSysH_t h, void** userPtrPtr )
|
|||||||
unsigned cmpPreGrpSymId = cmDspSysPresetRegisterGroup(h,"tl_cmp");
|
unsigned cmpPreGrpSymId = cmDspSysPresetRegisterGroup(h,"tl_cmp");
|
||||||
|
|
||||||
cmDspTlXform_t c0,c1;
|
cmDspTlXform_t c0,c1;
|
||||||
|
memset(&c0,0,sizeof(c0));
|
||||||
|
memset(&c1,0,sizeof(c1));
|
||||||
|
|
||||||
|
|
||||||
cmDspSysNewPage(h,"Controls-0");
|
cmDspSysNewPage(h,"Controls-0");
|
||||||
_cmDspSys_TlXformChain(h, &c0, preGrpSymId, cmpPreGrpSymId, amp, modp, 0, 0 );
|
_cmDspSys_TlXformChain(h, &c0, preGrpSymId, cmpPreGrpSymId, amp, modp, 0, 0 );
|
||||||
@ -121,10 +124,10 @@ cmDspRC_t _cmDspSysPgm_TimeLineLiteAf(cmDspSysH_t h, void** userPtrPtr )
|
|||||||
cmDspInst_t* ogainW = cmDspSysAllocInst(h,"Scalar", "Wet Master", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
|
cmDspInst_t* ogainW = cmDspSysAllocInst(h,"Scalar", "Wet Master", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
|
||||||
cmDspInst_t* ogainD = cmDspSysAllocInst(h,"Scalar", "Dry Master", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
|
cmDspInst_t* ogainD = cmDspSysAllocInst(h,"Scalar", "Dry Master", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
|
||||||
|
|
||||||
cmDspInst_t* gmult0 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*", "in-0", 1.0, "in-1", 1.0 );
|
cmDspInst_t* gmult0 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*$", "in-0", 1.0, "in-1", 1.0 );
|
||||||
cmDspInst_t* gmult1 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*", "in-0", 1.0, "in-1", 1.0 );
|
cmDspInst_t* gmult1 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*$", "in-0", 1.0, "in-1", 1.0 );
|
||||||
cmDspInst_t* gmult2 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*", "in-0", 1.0, "in-1", 1.0 );
|
cmDspInst_t* gmult2 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*$", "in-0", 1.0, "in-1", 1.0 );
|
||||||
cmDspInst_t* gmult3 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*", "in-0", 1.0, "in-1", 1.0 );
|
cmDspInst_t* gmult3 = cmDspSysAllocInst(h,"ScalarOp", NULL, 6, 2, "*$", "in-0", 1.0, "in-1", 1.0 );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -137,7 +140,9 @@ cmDspRC_t _cmDspSysPgm_TimeLineLiteAf(cmDspSysH_t h, void** userPtrPtr )
|
|||||||
cmDspInst_t* mi1p = cmDspSysAllocInst(h,"AMeter","In 1", 0);
|
cmDspInst_t* mi1p = cmDspSysAllocInst(h,"AMeter","In 1", 0);
|
||||||
|
|
||||||
cmDspInst_t* meas = cmDspSysAllocInst(h,"Scalar", "Begin Meas", 5, kNumberDuiId, 1.0, 1000.0, 1.0, 1.0 );
|
cmDspInst_t* meas = cmDspSysAllocInst(h,"Scalar", "Begin Meas", 5, kNumberDuiId, 1.0, 1000.0, 1.0, 1.0 );
|
||||||
cmDspInst_t* emeas = cmDspSysAllocInst(h,"Scalar", "End Meas", 5, kNumberDuiId, 1.0, 1000.0, 1.0, 1.0 );
|
cmDspInst_t* eloc = cmDspSysAllocInst(h,"Scalar", "End Loc", 5, kNumberDuiId, 1.0, 1000.0, 1.0, 1.0 );
|
||||||
|
cmDspInst_t* sfp_loc = cmDspSysAllocInst(h,"Label", NULL, 1, "sf loc:");
|
||||||
|
|
||||||
cmDspSysInstallCb( h, meas, "val", scp, "meas", NULL);
|
cmDspSysInstallCb( h, meas, "val", scp, "meas", NULL);
|
||||||
cmDspSysInstallCb( h, meas, "val", tlp, "meas", NULL);
|
cmDspSysInstallCb( h, meas, "val", tlp, "meas", NULL);
|
||||||
|
|
||||||
@ -323,36 +328,36 @@ cmDspRC_t _cmDspSysPgm_TimeLineLiteAf(cmDspSysH_t h, void** userPtrPtr )
|
|||||||
|
|
||||||
// score follower to recd_play,modulator and printers
|
// score follower to recd_play,modulator and printers
|
||||||
cmDspSysInstallCb(h, sfp, "out", modp, "index", NULL );
|
cmDspSysInstallCb(h, sfp, "out", modp, "index", NULL );
|
||||||
cmDspSysInstallCb(h, sfp, "recent", prp, "in", NULL ); // report 'recent' but only act on 'max' loc index
|
cmDspSysInstallCb(h, sfp, "recent", sfp_loc, "in", NULL ); // report 'recent' but only act on 'max' loc index
|
||||||
|
|
||||||
cmDspSysInstallCb( h, emeas, "val", its, "off-int", NULL);
|
cmDspSysInstallCb( h, eloc , "val", its, "off-int", NULL);
|
||||||
cmDspSysInstallCb( h, sfp, "out", its, "in", NULL);
|
cmDspSysInstallCb( h, sfp, "out", its, "in", NULL);
|
||||||
cmDspSysInstallCb( h, its, "out", offb, "in", NULL);
|
cmDspSysInstallCb( h, its, "out", offb, "in", NULL);
|
||||||
cmDspSysInstallCb( h, its, "out", prp, "in", NULL);
|
cmDspSysInstallCb( h, its, "out", prp, "in", NULL);
|
||||||
|
|
||||||
|
|
||||||
cmDspSysInstallCb(h, modp, "dgain0", ogain0, "val", NULL );
|
cmDspSysInstallCb(h, modp, "dgain0", ogain0, "val", NULL ); // mod -> ogain
|
||||||
cmDspSysInstallCb(h, modp, "dgain1", ogain1, "val", NULL );
|
cmDspSysInstallCb(h, modp, "dgain1", ogain1, "val", NULL );
|
||||||
cmDspSysInstallCb(h, modp, "wgain0", ogain2, "val", NULL );
|
cmDspSysInstallCb(h, modp, "wgain0", ogain2, "val", NULL );
|
||||||
cmDspSysInstallCb(h, modp, "wgain1", ogain3, "val", NULL );
|
cmDspSysInstallCb(h, modp, "wgain1", ogain3, "val", NULL );
|
||||||
|
|
||||||
|
|
||||||
cmDspSysInstallCb(h, ogain0, "val", gmult0, "in-0", NULL );
|
cmDspSysInstallCb(h, ogain0, "val", gmult0, "in-0", NULL ); // ogain scalars -> gmult 0
|
||||||
cmDspSysInstallCb(h, ogainD, "val", gmult0, "in-1", NULL );
|
|
||||||
|
|
||||||
cmDspSysInstallCb(h, ogain1, "val", gmult1, "in-0", NULL );
|
cmDspSysInstallCb(h, ogain1, "val", gmult1, "in-0", NULL );
|
||||||
cmDspSysInstallCb(h, ogainD, "val", gmult1, "in-1", NULL );
|
|
||||||
|
|
||||||
cmDspSysInstallCb(h, ogain2, "val", gmult2, "in-0", NULL );
|
cmDspSysInstallCb(h, ogain2, "val", gmult2, "in-0", NULL );
|
||||||
cmDspSysInstallCb(h, ogainW, "val", gmult2, "in-1", NULL );
|
|
||||||
cmDspSysInstallCb(h, ogain3, "val", gmult3, "in-0", NULL );
|
cmDspSysInstallCb(h, ogain3, "val", gmult3, "in-0", NULL );
|
||||||
|
|
||||||
|
cmDspSysInstallCb(h, ogainD, "val", gmult0, "in-1", NULL ); // master scalars -> gmult 1
|
||||||
|
cmDspSysInstallCb(h, ogainD, "val", gmult1, "in-1", NULL );
|
||||||
|
cmDspSysInstallCb(h, ogainW, "val", gmult2, "in-1", NULL );
|
||||||
cmDspSysInstallCb(h, ogainW, "val", gmult3, "in-1", NULL );
|
cmDspSysInstallCb(h, ogainW, "val", gmult3, "in-1", NULL );
|
||||||
|
|
||||||
cmDspSysInstallCb(h, gmult0, "out", lmix, "gain-0", NULL ); // output gain control - dry 0
|
cmDspSysInstallCb(h, gmult0, "out", lmix, "gain-0", NULL ); // gmult -> wdmix - l dry
|
||||||
cmDspSysInstallCb(h, gmult1, "out", rmix, "gain-0", NULL ); // dry 1
|
cmDspSysInstallCb(h, gmult1, "out", rmix, "gain-0", NULL ); // r dry
|
||||||
cmDspSysInstallCb(h, gmult2, "out", lmix, "gain-1", NULL ); // wet 0
|
cmDspSysInstallCb(h, gmult2, "out", lmix, "gain-1", NULL ); // l wet
|
||||||
cmDspSysInstallCb(h, gmult3, "out", rmix, "gain-1", NULL ); // wet 1
|
cmDspSysInstallCb(h, gmult3, "out", rmix, "gain-1", NULL ); // r wet
|
||||||
|
|
||||||
|
//cmDspSysInstallCb(h, gmult2, "out", prp, "in", NULL );
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user