From d9271ae66eb7f8297aa589f5ec97707efd1d9cf4 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 10 Dec 2013 16:23:18 -0500 Subject: [PATCH] mod0.js : Added 'sw0' and 'sw1' variables to generate a cross fade. --- src/kc/data/mod0.js | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/kc/data/mod0.js b/src/kc/data/mod0.js index c9cdaf5..b9fad57 100644 --- a/src/kc/data/mod0.js +++ b/src/kc/data/mod0.js @@ -62,23 +62,36 @@ { loc:8, mod:m1, var:maxt0, type:set, val:60 }, { loc:8, mod:m1, var:mint1, type:set, val:75 }, { loc:8, mod:m1, var:maxt1, type:set, val:85 }, - { loc:9 mod:m1, var:mod0, type:set, val:4 }, - { loc:9 mod:m1, var:mod1, type:set, val:4 }, + { loc:9 mod:m1, var:mod0, type:set, val:4 }, + { loc:9 mod:m1, var:mod1, type:set, val:4 }, + + // NOTE: Use sw0/1 to switch the xfade channels just before sending new parameters. + { loc:14 mod:m1, var:sw0, type:set, val:1 }, + { loc:14 mod:m1, var:sw1, type:set, val:1 }, + { loc:14 mod:m1, var:mod0, type:set, val:1 }, + { loc:14 mod:m1, var:mod1, type:set, val:1 }, + + { loc:17 mod:m1, var:sw0, type:set, val:4 }, + { loc:17 mod:m1, var:sw1, type:set, val:4 }, + { loc:17 mod:m1, var:mod0, type:set, val:4 }, + { loc:17 mod:m1, var:mod1, type:set, val:4 }, + + { loc:24, mod:m1, var:mint0, type:set, val:75 }, { loc:24, mod:m1, var:maxt0, type:set, val:85 }, { loc:24, mod:m1, var:mint1, type:set, val:50 }, { loc:24, mod:m1, var:maxt1, type:set, val:60 }, - { loc:25 mod:m1, var:mod0, type:set, val:2 }, - { loc:25 mod:m1, var:mod1, type:set, val:2 }, + { loc:25 mod:m1, var:mod0, type:set, val:2 }, + { loc:25 mod:m1, var:mod1, type:set, val:2 }, { loc:35, mod:m1, var:mint0, type:set, val:50 }, { loc:35, mod:m1, var:maxt0, type:set, val:60 }, { loc:35, mod:m1, var:mint1, type:set, val:75 }, - { loc:35, mod:m1, var:maxt1, type:set, val:85 }, - { loc:36 mod:m1, var:mod0, type:set, val:1}, - { loc:36 mod:m1, var:mod1, type:set, val:1 }, + { loc:35, mod:m1, var:maxt1, type:set, val:85 }, + { loc:36 mod:m1, var:mod0, type:set, val:1}, + { loc:36 mod:m1, var:mod1, type:set, val:1 }, //{ loc:9 mod:m1, var:thr1, type:line, dur:3 rate:50 end:75},