From 759ec01595e9d6effe1d7c731e45947333e02426 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 13 Aug 2013 12:44:13 -0700 Subject: [PATCH] cmDspPgmKr.c:Added control to set xfade time. --- dsp/cmDspPgmKr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dsp/cmDspPgmKr.c b/dsp/cmDspPgmKr.c index 1958074..861d3aa 100644 --- a/dsp/cmDspPgmKr.c +++ b/dsp/cmDspPgmKr.c @@ -1576,6 +1576,7 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr ) cmDspInst_t* ogain0 = cmDspSysAllocInst(h,"Scalar", "Out Gain-0", 5, kNumberDuiId, 0.0, 10.0,0.01, 3.0 ); cmDspInst_t* ogain1 = cmDspSysAllocInst(h,"Scalar", "Out Gain-1", 5, kNumberDuiId, 0.0, 10.0,0.01, 3.0 ); + cmDspInst_t* xfadMs = cmDspSysAllocInst(h,"Scalar", "Xfade Ms", 5, kNumberDuiId, 0.0, 1000.0,0.01, 50.0 ); //cmDspInst_t* reload = cmDspSysAllocInst(h,"Button", "Reload", 2, kButtonDuiId, 0.0 ); @@ -1746,13 +1747,18 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr ) cmDspSysInstallCb(h, ogain0, "val", ao0p, "gain", NULL ); // output gain control cmDspSysInstallCb(h, ogain1, "val", ao1p, "gain", NULL ); + cmDspSysInstallCb(h, xfadMs, "val", fad0, "ms", NULL ); + cmDspSysInstallCb(h, xfadMs, "val", fad1, "ms", NULL ); // Printer connections cmDspSysInstallCb(h, tlp, "afn", prp, "in", NULL ); cmDspSysInstallCb(h, tlp, "mfn", prp, "in", NULL ); cmDspSysInstallCb(h, tlp, "sel", prp, "in", NULL ); + cmDspSysInstallCb(h, modp, "mod0", md00p, "val", NULL ); cmDspSysInstallCb(h, modp, "thr0", th00p, "val", NULL ); + cmDspSysInstallCb(h, modp, "upr0", us00p, "val", NULL ); + cmDspSysInstallCb(h, modp, "lwr0", ls00p, "val", NULL ); cmDspSysInstallCb(h, modp, "mint0", min_thrh_0, "val", NULL ); cmDspSysInstallCb(h, modp, "maxt0", max_thrh_0, "val", NULL ); cmDspSysInstallCb(h, modp, "minu0", min_upr_0, "val", NULL ); @@ -1760,7 +1766,11 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr ) cmDspSysInstallCb(h, modp, "minl0", min_lwr_0, "val", NULL ); cmDspSysInstallCb(h, modp, "maxl0", max_lwr_0, "val", NULL ); + + cmDspSysInstallCb(h, modp, "mod1", md10p, "val", NULL ); cmDspSysInstallCb(h, modp, "thr1", th10p, "val", NULL ); + cmDspSysInstallCb(h, modp, "upr1", us10p, "val", NULL ); + cmDspSysInstallCb(h, modp, "lwr1", ls10p, "val", NULL ); cmDspSysInstallCb(h, modp, "mint1", min_thrh_1, "val", NULL ); cmDspSysInstallCb(h, modp, "maxt1", max_thrh_1, "val", NULL ); cmDspSysInstallCb(h, modp, "minu1", min_upr_1, "val", NULL );