cmDspPgmKrChain.c : Added 'switch' button to force x-fader transition.

This commit is contained in:
kevin 2017-07-08 17:20:32 -04:00
parent 4461d1c128
commit dbd448177c

View File

@ -36,7 +36,7 @@
#include "cmDspPgmKrChain.h"
#undef KR2
#define KR2
cmDspRC_t krLoadRsrc(cmDspSysH_t h, cmErr_t* err, krRsrc_t* r)
@ -335,6 +335,11 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
cmDspSysInstallCb(h, xfadMs, "val", xfad, "ms", NULL );
cmDspSysInstallCb(h, modp, mlbl("xfad"), xfadMs, "val", NULL);
cmDspInst_t* sw_btn = cmDspSysAllocButton( h, lbl("switch"), 0);
cmDspSysInstallCb( h, sw_btn, "sym", achan, "trig", NULL );
// TODO: FIX THIS: can't send window length (e.g. 1024,2048, ... ) to a 'MsgList' with 4 elements
// since it expects an index betweeen 0 and 3. CRASH!
//cmDspSysInstallCb(h, modp, mlbl("win"), wnd_ctl, "sel", NULL );
@ -526,6 +531,9 @@ void _cmDspSys_TlXformChain( cmDspSysH_t h, cmDspTlXform_t* c, unsigned preGrpS
cmDspSysInstallCb(h, xfadMs, "val", xfad, "ms", NULL );
cmDspSysInstallCb(h, modp, mlbl("xfad"), xfadMs, "val", NULL);
cmDspInst_t* sw_btn = cmDspSysAllocButton( h, lbl("switch"), 0);
cmDspSysInstallCb( h, sw_btn, "sym", achan, "trig", NULL );
cmDspSysInstallCb(h, modp, mlbl("win"), wnd_ctl, "sel", NULL );
cmDspSysInstallCb(h, modp, mlbl("hop"), hop_ctl, "sel", NULL );
cmDspSysInstallCb(h, modp, mlbl("ceil"), ceil_ctl, "val", NULL );