Quellcode durchsuchen

mod_test_0.js : Updated to reflec the new cmScModulator file format.

master
kevin vor 8 Jahren
Ursprung
Commit
27fcea2dce
1 geänderte Dateien mit 94 neuen und 71 gelöschten Zeilen
  1. 94
    71
      src/kc/data/mod_test_0.js

+ 94
- 71
src/kc/data/mod_test_0.js Datei anzeigen

@@ -1,82 +1,101 @@
1 1
 {
2
- array: 
2
+ // NOTE: The first engry group should always be executable.
3
+ 
4
+ seq0 :
5
+ [
6
+   { loc:-1  mod:m1, type:exec val:init     }
7
+   { loc:-1                    val:default  }
8
+   { loc:18                    val:preset_a }
9
+   { loc:37                    val:preset_g }
10
+ ]
11
+
12
+ seq1 :
13
+ [
14
+   { loc:-1  mod:m1, type:exec val:init     }
15
+   { loc:-1                    val:default  }
16
+   { loc:18                    val:preset_a }
17
+   { loc:37                    val:preset_g }
18
+ ]
19
+
20
+ init : 
3 21
  [
4 22
    // wnd len:1=512 2=1024 3=2048 4=4096 5=8192
5 23
    { loc:-1, mod:m1, var:win0, type:set, rate:100, val:3 },
6
-   { loc:-1, mod:m1, var:win1, type:set, rate:100, val:2 },
24
+   {                 var:win1, type:set, rate:100, val:2 },
7 25
 
8 26
    // hop: 1=1 2=2 3=4 4=8 5=16
9
-   { loc:-1, mod:m1, var:hop0, type:set, rate:100, val:3 },
10
-   { loc:-1, mod:m1, var:hop1, type:set, rate:100, val:3 },
27
+   {                 var:hop0, type:set, rate:100, val:3 },
28
+   {                 var:hop1, type:set, rate:100, val:3 },
11 29
 
12
-   { loc:-1, mod:m1, var:mod0, type:set, val:1   },
13
-   { loc:-1, mod:m1, var:mod1, type:set, val:1  },
30
+   {                 var:mod0, type:set, val:1   },
31
+   {                 var:mod1, type:set, val:1  },
14 32
 
15
-   { loc:-1, mod:m1, var:thr0, type:set, val:65 },
16
-   { loc:-1, mod:m1, var:thr1, type:set, val:65 },
33
+   {                 var:thr0, type:set, val:65 },
34
+   {                 var:thr1, type:set, val:65 },
17 35
 
18
-   { loc:-1, mod:m1, var:upr0, type:set, val:0 },
19
-   { loc:-1, mod:m1, var:upr1, type:set, val:0 },
20
-   { loc:-1, mod:m1, var:lwr0, type:set, val:2.0 },
21
-   { loc:-1, mod:m1, var:lwr1, type:set, val:2.0 },
36
+   {                 var:upr0, type:set, val:0 },
37
+   {                 var:upr1, type:set, val:0 },
38
+   {                 var:lwr0, type:set, val:2.0 },
39
+   {                 var:lwr1, type:set, val:2.0 },
22 40
    
23
-   { loc:-1, mod:m1, var:off0, type:set, val:20 },
24
-   { loc:-1, mod:m1, var:off1, type:set, val:20 },
25
-
26
-   { loc:-1, mod:m1, var:wet0, type:set, val:0.0 },
27
-   { loc:-1, mod:m1, var:wet1, type:set, val:0.0 },
28
-
29
-   { loc:-1, mod:m1, var:mint0, type:set, val:55 },
30
-   { loc:-1, mod:m1, var:maxt0, type:set, val:85 },
31
-   { loc:-1, mod:m1, var:minu0, type:set, val:0.0 },
32
-   { loc:-1, mod:m1, var:maxu0, type:set, val:0.5 },
33
-   { loc:-1, mod:m1, var:minl0, type:set, val:0 },
34
-   { loc:-1, mod:m1, var:maxl0, type:set, val:3 },
35
-   { loc:-1, mod:m1, var:mino0, type:set, val:-100.0 },
36
-   { loc:-1, mod:m1, var:maxo0, type:set, val:100.0 },
37
-
38
-
39
-   { loc:-1, mod:m1, var:mint1, type:set, val:55 },
40
-   { loc:-1, mod:m1, var:maxt1, type:set, val:85 },
41
-   { loc:-1, mod:m1, var:minu1, type:set, val:0.0 },
42
-   { loc:-1, mod:m1, var:maxu1, type:set, val:0.5 },
43
-   { loc:-1, mod:m1, var:minl1, type:set, val:0 },
44
-   { loc:-1, mod:m1, var:maxl1, type:set, val:3 },
45
-   { loc:-1, mod:m1, var:mino1, type:set, val:-100.0 },
46
-   { loc:-1, mod:m1, var:maxo1, type:set, val:100.0 },
41
+   {                 var:off0, type:set, val:20 },
42
+   {                 var:off1, type:set, val:20 },
43
+
44
+   {                 var:wet0, type:set, val:0.0 },
45
+   {                 var:wet1, type:set, val:0.0 },
46
+
47
+   {                 var:mint0, type:set, val:55 },
48
+   {                 var:maxt0, type:set, val:85 },
49
+   {                 var:minu0, type:set, val:0.0 },
50
+   {                 var:maxu0, type:set, val:0.5 },
51
+   {                 var:minl0, type:set, val:0 },
52
+   {                 var:maxl0, type:set, val:3 },
53
+   {                 var:mino0, type:set, val:-100.0 },
54
+   {                 var:maxo0, type:set, val:100.0 },
55
+
56
+
57
+   {                 var:mint1, type:set, val:55 },
58
+   {                 var:maxt1, type:set, val:85 },
59
+   {                 var:minu1, type:set, val:0.0 },
60
+   {                 var:maxu1, type:set, val:0.5 },
61
+   {                 var:minl1, type:set, val:0 },
62
+   {                 var:maxl1, type:set, val:3 },
63
+   {                 var:mino1, type:set, val:-100.0 },
64
+   {                 var:maxo1, type:set, val:100.0 },
47 65
    
48
-   { loc:-1, mod:m1, var:xfad0, type:set, val:100.0 },
49
-   { loc:-1  mod:m1, var:sw0,   type:decl, val:1 },	
50
-   { loc:-1, mod:m1, var:xfad1, type:set, val:100.0 },
51
-   { loc:-1  mod:m1, var:sw1,   type:decl, val:1 },	
66
+   {                 var:xfad0, type:set, val:100.0 },
67
+   {                 var:sw0,   type:decl, val:1 },	
68
+   {                 var:xfad1, type:set, val:100.0 },
69
+   {                 var:sw1,   type:decl, val:1 },	
52 70
 
53 71
    // compressor
54
-   { loc:-1, mod:m1, var:cbyp0,    type:set, val:0.0 },
55
-   { loc:-1, mod:m1, var:cigain0,  type:set, val:3.0 },
56
-   { loc:-1, mod:m1, var:cthrsh0,  type:set, val:-20.0 },
57
-   { loc:-1, mod:m1, var:cratio0,  type:set, val:2.0 },
58
-   { loc:-1, mod:m1, var:catkms0,  type:set, val:20.0 },
59
-   { loc:-1, mod:m1, var:crlsms0,  type:set, val:1000.0 },
60
-   { loc:-1, mod:m1, var:cmakeup0, type:set, val:1.0 },
61
-   { loc:-1, mod:m1, var:cwndms0,  type:set, val:200 },
62
-
63
-   { loc:-1, mod:m1, var:cbyp1,    type:set, val:0.0 },
64
-   { loc:-1, mod:m1, var:cigain1,  type:set, val:3.0 },
65
-   { loc:-1, mod:m1, var:cthrsh1,  type:set, val:-20.0 },
66
-   { loc:-1, mod:m1, var:cratio1,  type:set, val:2.0 },
67
-   { loc:-1, mod:m1, var:catkms1,  type:set, val:20.0 },
68
-   { loc:-1, mod:m1, var:crlsms1,  type:set, val:1000.0 },
69
-   { loc:-1, mod:m1, var:cmakeup1, type:set, val:1.0 },
70
-   { loc:-1, mod:m1, var:cwndms1,  type:set, val:200 },
71
-   
72
-   { loc:-1, mod:m1, var:dgain0,   type:set, val:1.0 },
73
-   { loc:-1, mod:m1, var:dgain1,   type:set, val:1.0 },
74
-   { loc:-1, mod:m1, var:wgain0,   type:set, val:1.0 },
75
-   { loc:-1, mod:m1, var:wgain1,   type:set, val:1.0 },
72
+   {                 var:cbyp0,    type:set, val:0.0 },
73
+   {                 var:cigain0,  type:set, val:3.0 },
74
+   {                 var:cthrsh0,  type:set, val:-20.0 },
75
+   {                 var:cratio0,  type:set, val:2.0 },
76
+   {                 var:catkms0,  type:set, val:20.0 },
77
+   {                 var:crlsms0,  type:set, val:1000.0 },
78
+   {                 var:cmakeup0, type:set, val:1.0 },
79
+   {                 var:cwndms0,  type:set, val:200 },
80
+
81
+   {                 var:cbyp1,    type:set, val:0.0 },
82
+   {                 var:cigain1,  type:set, val:3.0 },
83
+   {                 var:cthrsh1,  type:set, val:-20.0 },
84
+   {                 var:cratio1,  type:set, val:2.0 },
85
+   {                 var:catkms1,  type:set, val:20.0 },
86
+   {                 var:crlsms1,  type:set, val:1000.0 },
87
+   {                 var:cmakeup1, type:set, val:1.0 },
88
+   {                 var:cwndms1,  type:set, val:200 },
76 89
    
77
-// Default
90
+   {                 var:dgain0,   type:set, val:1.0 },
91
+   {                 var:dgain1,   type:set, val:1.0 },
92
+   {                 var:wgain0,   type:set, val:1.0 },
93
+   {                 var:wgain1,   type:set, val:1.0 },
94
+  ]
78 95
 
79
-   { loc:2 mod:m1       var:mod0,	type:set, val:1    },
96
+   default :
97
+  [
98
+   {  loc: -1, mod:m1   var:mod0,	type:set, val:1    },
80 99
    {                    var:cigain0,    type:set, val: 5.0  },
81 100
    {                    var:wet0        type:set, val: 0.0}
82 101
    {                    var:sw0,        type:set, val:0 },	
@@ -86,12 +105,11 @@
86 105
    {                    var:wet1        type:set, val: 0.0}
87 106
    {                    var:sw1,        type:set, val:0 },	
88 107
 
89
-   { loc:19  type:exec val:preset_a }
90
-   { loc:38  type:exec val:preset_g }
91
-
92
-// Preset A
108
+  ]
93 109
 
94
-   { loc:preset_a mod:m1, var:mod0,    type:set, val: 1   },
110
+   preset_a :
111
+   [
112
+   { loc: -1, mod:m1, var:mod0,    type:set, val: 1   },
95 113
    {                var:thr0,    type:set, val: 60.0 },
96 114
    {                var:upr0,    type:set, val: -1.1 },
97 115
    {                var:lwr0,    type:set, val: 2.0  },
@@ -110,8 +128,11 @@
110 128
    {                var:wet1     type:set, val: 1.0}
111 129
    {                var:wgain1,  type:set, val: 1.75  }
112 130
    {                var:sw1,     type:set, val:0 },	
131
+   ]
113 132
 
114
-   { loc:preset_g mod:m1    var:mod0,    type:set, val: 4 },
133
+   preset_g :
134
+   [
135
+   { loc:-1,  mod:m1, var:mod0,    type:set, val: 4 },
115 136
    {                  var:thr0,    type:set, val: 60.0 },
116 137
    {                  var:upr0,    type:set, val: -0.7 },
117 138
    {                  var:lwr0,    type:set, val: 8.0  },
@@ -128,5 +149,7 @@
128 149
    {                  var:cigain1, type:set, val: 10.0  },
129 150
    {                  var:wet1     type:set, val: 1.0 }
130 151
    {                  var:sw1,     type:set, val:0 },	
131
-  ]
152
+   ]
153
+   
154
+  
132 155
 }

Laden…
Abbrechen
Speichern