Ver código fonte

mod0.js : Added 'sw0' and 'sw1' variables to generate a cross fade.

master
kevin 11 anos atrás
pai
commit
d9271ae66e
1 arquivos alterados com 20 adições e 7 exclusões
  1. 20
    7
      src/kc/data/mod0.js

+ 20
- 7
src/kc/data/mod0.js Ver arquivo

@@ -62,23 +62,36 @@
62 62
    { loc:8, mod:m1, var:maxt0, type:set, val:60 },
63 63
    { loc:8, mod:m1, var:mint1, type:set, val:75 },
64 64
    { loc:8, mod:m1, var:maxt1, type:set, val:85 },
65
-   { loc:9 mod:m1, var:mod0, type:set, val:4 },
66
-   { loc:9 mod:m1, var:mod1, type:set, val:4 },
65
+   { loc:9  mod:m1, var:mod0,  type:set, val:4 },
66
+   { loc:9  mod:m1, var:mod1,  type:set, val:4 },
67 67
 
68
+
69
+   // NOTE: Use sw0/1 to switch the xfade channels just before sending new parameters.
70
+   { loc:14 mod:m1, var:sw0,   type:set, val:1 },	
71
+   { loc:14 mod:m1, var:sw1,   type:set, val:1 },	
72
+   { loc:14 mod:m1, var:mod0,  type:set, val:1 },
73
+   { loc:14 mod:m1, var:mod1,  type:set, val:1 },
74
+
75
+   { loc:17 mod:m1, var:sw0,   type:set, val:4 },	
76
+   { loc:17 mod:m1, var:sw1,   type:set, val:4 },	
77
+   { loc:17 mod:m1, var:mod0,  type:set, val:4 },
78
+   { loc:17 mod:m1, var:mod1,  type:set, val:4 },
79
+
80
+   
68 81
    { loc:24, mod:m1, var:mint0, type:set, val:75 },
69 82
    { loc:24, mod:m1, var:maxt0, type:set, val:85 },
70 83
    { loc:24, mod:m1, var:mint1, type:set, val:50 },
71 84
    { loc:24, mod:m1, var:maxt1, type:set, val:60 },
72
-   { loc:25 mod:m1, var:mod0, type:set, val:2 },
73
-   { loc:25 mod:m1, var:mod1, type:set, val:2 },
85
+   { loc:25  mod:m1, var:mod0,  type:set, val:2 },
86
+   { loc:25  mod:m1, var:mod1,  type:set, val:2 },
74 87
 
75 88
 
76 89
    { loc:35, mod:m1, var:mint0, type:set, val:50 },
77 90
    { loc:35, mod:m1, var:maxt0, type:set, val:60 },
78 91
    { loc:35, mod:m1, var:mint1, type:set, val:75 },
79
-   { loc:35,  mod:m1, var:maxt1, type:set, val:85 },
80
-   { loc:36 mod:m1, var:mod0, type:set, val:1},
81
-   { loc:36 mod:m1, var:mod1, type:set, val:1 },
92
+   { loc:35, mod:m1, var:maxt1, type:set, val:85 },
93
+   { loc:36  mod:m1, var:mod0,  type:set, val:1},
94
+   { loc:36  mod:m1, var:mod1,  type:set, val:1 },
82 95
 
83 96
 
84 97
    //{ loc:9 mod:m1, var:thr1, type:line, dur:3 rate:50 end:75},

Carregando…
Cancelar
Salvar