Browse Source

8/12/17 updates.

master
kevin 7 years ago
parent
commit
c5829c3505
2 changed files with 114 additions and 41 deletions
  1. 112
    39
      src/kc/data/gen_mod/gen_mod.py
  2. 2
    2
      src/kc/data/mod_simple_seq_2u.js

+ 112
- 39
src/kc/data/gen_mod/gen_mod.py View File

@@ -63,8 +63,12 @@ initPresetStr = """
63 63
    {                 var:lwr0,           val:2.0 },  // lwr has a hardcoded min. of 0.3
64 64
    {                 var:lwr1,           val:2.0 },
65 65
    
66
-   {                 var:off0,           val:20 },
67
-   {                 var:off1,           val:20 },
66
+   {                 var:ceil0,           val:20 },
67
+   {                 var:ceil1,           val:20 },
68
+   {                 var:expo0,           val:2.0 },
69
+   {                 var:expo1,           val:2.0 },
70
+   {                 var:mix0,            val:0.0 },
71
+   {                 var:mix1,            val:0.0 },
68 72
 
69 73
    {                 var:wet0,           val:0.0 },
70 74
    {                 var:wet1,           val:0.0 },
@@ -148,7 +152,9 @@ dfltPresetL = [
148 152
               "thr":   60.0,
149 153
               "upr":   -1.1,
150 154
               "lwr":    2.0,
151
-              "off":    0.0,
155
+              "ceil":   0.0,
156
+              "mix":    0.0,
157
+              "cbyp":   0.0,
152 158
               "cigain": 6.0,
153 159
               "wet":    1.0,
154 160
               "wgain":  1.75,
@@ -160,7 +166,9 @@ dfltPresetL = [
160 166
               "thr":   60.0,
161 167
               "upr":   -0.99,
162 168
               "lwr":    2.0,
163
-              "off":    0.0,
169
+              "ceil":    0.0,
170
+              "mix":    0.0,
171
+              "cbyp":    0.0,
164 172
               "cigain": 6.0,
165 173
               "wet":    1.0,
166 174
               "wgain":  1.75,
@@ -176,7 +184,8 @@ dfltPresetL = [
176 184
               "thr":   77.0,
177 185
               "upr":   -0.5,
178 186
               "lwr":    3.0,
179
-              "off":    0.0,
187
+              "ceil":    0.0,
188
+              "mix":    0.0,
180 189
               "cigain":10.0,
181 190
               "wet":    1.0,
182 191
               "wgain":  1.75,
@@ -188,7 +197,8 @@ dfltPresetL = [
188 197
               "thr":   74.0,
189 198
               "upr":   -0.5,
190 199
               "lwr":    2.0,
191
-              "off":    0.0,
200
+              "ceil":    0.0,
201
+              "mix":    0.0,
192 202
               "cigain":10.0,
193 203
               "wet":    1.0,
194 204
               "wgain":  1.75,
@@ -204,7 +214,8 @@ dfltPresetL = [
204 214
               "thr":   80.0,
205 215
               "upr":   -0.5,
206 216
               "lwr":    5.0,
207
-              "off":    0.0,
217
+              "ceil":    0.0,
218
+              "mix":    0.0,
208 219
               "cigain":11.0,
209 220
               "wet":    1.0,
210 221
               "wgain":  1.0,
@@ -216,7 +227,8 @@ dfltPresetL = [
216 227
               "thr":   80.0,
217 228
               "upr":   -0.5,
218 229
               "lwr":    5.0,
219
-              "off":    0.0,
230
+              "mix":    0.0,
231
+              "ceil":    0.0,
220 232
               "cigain":11.0,
221 233
               "wet":    1.0,
222 234
               "wgain":  1.0,
@@ -233,7 +245,8 @@ dfltPresetL = [
233 245
               "thr":   70.0,
234 246
               "upr":   -3.9,
235 247
               "lwr":    4.0,
236
-              "off":    0.0,
248
+              "mix":    0.0,
249
+              "ceil":    0.0,
237 250
               "cigain": 9.0,
238 251
               "wet":    1.0,
239 252
               "wgain":  1.0,
@@ -245,7 +258,8 @@ dfltPresetL = [
245 258
               "thr":   70.0,
246 259
               "upr":   -4.5,
247 260
               "lwr":    4.0,
248
-              "off":    0.0,
261
+              "mix":    0.0,
262
+              "ceil":    0.0,
249 263
               "cigain": 9.0,
250 264
               "wet":    1.0,
251 265
               "wgain":  1.0,
@@ -261,7 +275,9 @@ dfltPresetL = [
261 275
               "thr":   50.0,
262 276
               "upr":   -3.0,
263 277
               "lwr":    1.0,
264
-              "off":    0.0,
278
+              "ceil":    0.0,
279
+              "expo":   1.0,
280
+              "mix":    0.0,
265 281
               "cigain": 6.0,
266 282
               "wet":    1.0,
267 283
               "wgain":  2.0,
@@ -273,7 +289,9 @@ dfltPresetL = [
273 289
               "thr":   50.0,
274 290
               "upr":   -3.0,
275 291
               "lwr":    1.0,
276
-              "off":    0.0,
292
+              "ceil":    0.0,
293
+              "expo":   1.0,
294
+              "mix":    0.0,
277 295
               "cigain": 6.0,
278 296
               "wet":    1.0,
279 297
               "wgain":  2.0,
@@ -289,7 +307,8 @@ dfltPresetL = [
289 307
               "thr":   60.0,
290 308
               "upr":   -3.0,
291 309
               "lwr":    1.0,
292
-              "off":    0.0,
310
+              "ceil":    0.0,
311
+              "mix":    0.0,
293 312
               "cigain": 6.0,
294 313
               "wet":    1.0,
295 314
               "wgain":  2.0,
@@ -301,7 +320,8 @@ dfltPresetL = [
301 320
               "thr":   60.0,
302 321
               "upr":   -3.0,
303 322
               "lwr":    1.0,
304
-              "off":    0.0,
323
+              "ceil":    0.0,
324
+              "mix":    0.0,
305 325
               "cigain": 6.0,
306 326
               "wet":    1.0,
307 327
               "wgain":  2.0,
@@ -317,7 +337,8 @@ dfltPresetL = [
317 337
               "thr":   55.0,
318 338
               "upr":   -3.0,
319 339
               "lwr":    1.0,
320
-              "off":    0.0,
340
+              "ceil":    0.0,
341
+              "mix":    0.0,
321 342
               "cigain": 6.0,
322 343
               "wet":    1.0,
323 344
               "wgain":  2.0,
@@ -329,7 +350,8 @@ dfltPresetL = [
329 350
               "thr":   55.0,
330 351
               "upr":   -3.0,
331 352
               "lwr":    1.0,
332
-              "off":    0.0,
353
+              "ceil":    0.0,
354
+              "mix":    0.0,
333 355
               "cigain": 6.0,
334 356
               "wet":    1.0,
335 357
               "wgain":  2.0,
@@ -345,7 +367,8 @@ dfltPresetL = [
345 367
               "thr":   55.0,
346 368
               "upr":   -5.0,
347 369
               "lwr":    1.0,
348
-              "off":    0.0,
370
+              "ceil":    0.0,
371
+              "mix":    0.0,
349 372
               "cigain": 6.0,
350 373
               "wet":    1.0,
351 374
               "wgain":  2.0,
@@ -357,7 +380,8 @@ dfltPresetL = [
357 380
               "thr":   55.0,
358 381
               "upr":   -5.0,
359 382
               "lwr":    1.0,
360
-              "off":    0.0,
383
+              "ceil":    0.0,
384
+              "mix":    0.0,
361 385
               "cigain": 6.0,
362 386
               "wet":    1.0,
363 387
               "wgain":  2.0,
@@ -373,7 +397,9 @@ dfltPresetL = [
373 397
               "thr":   60.0,
374 398
               "upr":   -0.7,
375 399
               "lwr":    8.0,
376
-              "off":   20.0,
400
+              "ceil":   20.0,
401
+              "expo":    8.0,              
402
+              "mix":    1.0,
377 403
               "cigain":10.0,
378 404
               "wet":    1.0,
379 405
               "wgain":  1.0,
@@ -385,7 +411,9 @@ dfltPresetL = [
385 411
               "thr":   64.0,
386 412
               "upr":   -0.7,
387 413
               "lwr":    8.0,
388
-              "off":   20.0,
414
+              "ceil":   20.0,
415
+              "expo":   8.0,              
416
+              "mix":    1.0,
389 417
               "cigain":10.0,
390 418
               "wet":    1.0,
391 419
               "wgain":  1.0,
@@ -401,7 +429,9 @@ dfltPresetL = [
401 429
               "thr":   50.0,
402 430
               "upr":   -0.7,
403 431
               "lwr":    2.0,
404
-              "off":   40.0,
432
+              "ceil":   40.0,
433
+              "expo":    2.0,              
434
+              "mix":    1.0,
405 435
               "cigain":10.0,
406 436
               "wet":    1.0,
407 437
               "wgain":  1.0,
@@ -412,8 +442,10 @@ dfltPresetL = [
412 442
               "mod":    4,
413 443
               "thr":   54.0,
414 444
               "upr":   -0.7,
415
-              "lwr":    8.0,
416
-              "off":   40.0,
445
+              "lwr":    2.0,
446
+              "ceil":   40.0,
447
+              "expo":   2.0,              
448
+              "mix":    1.0,
417 449
               "cigain":10.0,
418 450
               "wet":    1.0,
419 451
               "wgain":  1.0,
@@ -429,7 +461,9 @@ dfltPresetL = [
429 461
               "thr":   50.0,
430 462
               "upr":   -0.7,
431 463
               "lwr":    8.0,
432
-              "off":   20.0,
464
+              "ceil":   20.0,
465
+              "expo":   8.0,              
466
+              "mix":    1.0,
433 467
               "cigain":10.0,
434 468
               "wet":    1.0,
435 469
               "wgain":  1.0,
@@ -441,7 +475,9 @@ dfltPresetL = [
441 475
               "thr":   54.0,
442 476
               "upr":   -0.7,
443 477
               "lwr":    2.0,
444
-              "off":   20.0,
478
+              "ceil":   20.0,
479
+              "expo":   2.0,
480
+              "mix":    1.0,
445 481
               "cigain":10.0,
446 482
               "wet":    1.0,
447 483
               "wgain":  1.0,
@@ -457,7 +493,9 @@ dfltPresetL = [
457 493
               "thr":   40.0,
458 494
               "upr":   -0.4,
459 495
               "lwr":    7.0,
460
-              "off":   60.0,
496
+              "ceil":   60.0,
497
+              "expo":   7.0,
498
+              "mix":    1.0,
461 499
               "cigain":10.0,
462 500
               "wet":    1.0,
463 501
               "wgain":  1.0,
@@ -469,7 +507,9 @@ dfltPresetL = [
469 507
               "thr":   34.0,
470 508
               "upr":   -0.3,
471 509
               "lwr":    5.0,
472
-              "off":   64.0,
510
+              "ceil":   64.0,
511
+              "expo":   5.0,
512
+              "mix":    1.0,
473 513
               "cigain":10.0,
474 514
               "wet":    1.0,
475 515
               "wgain":  1.0,
@@ -663,7 +703,7 @@ if __name__ == "__main__":
663 703
         #mod_range( presetL, "lwr", 1.1, 8.0, 1.1, 8.0 )     # 1.5 is good
664 704
         #mod_range( presetL, "lwr", 8.0, 8.0, 8.0, 8.0 )
665 705
         mod_range( presetL, "lwr", 1.5, 1.5, 1.5, 1.5 )
666
-        mod_range( presetL, "off", 0.0, 99.9, 0.0, 99.9)
706
+        mod_range( presetL, "ceil", 0.0, 99.9, 0.0, 99.9)
667 707
         #mod_range( presetL, "upr",  2.5, -5.0, 2.3, -5.2)
668 708
         #mod_range( presetL, "lwr",  0.5,  2.0, 0.5,  2.0)
669 709
 
@@ -690,7 +730,7 @@ if __name__ == "__main__":
690 730
             presetL = dupl_preset( dfltPresetL, "g_1_a", dfltLabelsL)
691 731
 
692 732
             mod_range( presetL, "thr",   20.0, 50.0, 20.0, 50.0 )  # offs:65 thr:20-50
693
-            mod_range( presetL, "off",   10.0, 80.0, 10.0, 80.0)
733
+            mod_range( presetL, "ceil",   10.0, 80.0, 10.0, 80.0)
694 734
             mod_range( presetL, "upr",  -0.7, -0.2, -0.7, -0.2 )
695 735
             mod_range( presetL, "lwr",   2.0, 2.0,   8.0, 4.0 )
696 736
         
@@ -710,10 +750,10 @@ if __name__ == "__main__":
710 750
         presetL = dupl_preset( dfltPresetL, "g_1_d", dfltLabelsL)
711 751
         
712 752
         mod_range( presetL, "thr",   20.0, 50.0, 20.0, 50.0 )  # offs:65 thr:20-50
713
-        #mod_range( presetL, "off",   10.0, 80.0, 10.0, 80.0)
714
-        #mod_range( presetL, "off",   65.0, 65.0, 65.0, 65.0)      # thr 34, offset should be > 50
715
-        #mod_range( presetL, "off",   50.0, 80.0, 50.0, 80.0)
716
-        mod_range( presetL, "off",   10.0, 80.0, 10.0, 80.0)
753
+        #mod_range( presetL, "ceil",   10.0, 80.0, 10.0, 80.0)
754
+        #mod_range( presetL, "ceil",   65.0, 65.0, 65.0, 65.0)      # thr 34, offset should be > 50
755
+        #mod_range( presetL, "ceil",   50.0, 80.0, 50.0, 80.0)
756
+        mod_range( presetL, "ceil",   10.0, 80.0, 10.0, 80.0)
717 757
         mod_range( presetL, "cigain", 14.0,  14.0,  14.0,  14.0 )
718 758
 
719 759
     if 0: #  1/28/17
@@ -740,7 +780,7 @@ if __name__ == "__main__":
740 780
         presetL = dupl_preset( dfltPresetL, "g_1_a", dfltLabelsL)
741 781
 
742 782
         mod_range( presetL, "thr",   20.0, 50.0, 20.0, 50.0 )  # offs:65 thr:20-50
743
-        mod_range( presetL, "off",   10.0, 80.0, 10.0, 80.0)
783
+        mod_range( presetL, "ceil",   10.0, 80.0, 10.0, 80.0)
744 784
         mod_range( presetL, "upr",  -0.7, -0.2, -0.7, -0.2 )
745 785
         mod_range( presetL, "lwr",   2.0, 2.0,   8.0, 4.0 )
746 786
         
@@ -786,7 +826,7 @@ if __name__ == "__main__":
786 826
         presetL = presetL[0:N]
787 827
         
788 828
         mod_range( presetL, "thr",   40.0, 40.0, 40.0, 40.0 )  # offs:65 thr:20-50
789
-        mod_range( presetL, "off",   55.0, 55.0, 55.0, 55.0)
829
+        mod_range( presetL, "ceil",   55.0, 55.0, 55.0, 55.0)
790 830
         mod_range( presetL, "cigain", 14.0,  14.0,  14.0,  14.0 )
791 831
 
792 832
 
@@ -799,7 +839,7 @@ if __name__ == "__main__":
799 839
         presetL = dupl_preset( dfltPresetL, "g_1_d", dfltLabelsL)
800 840
 
801 841
         mod_range( presetL, "thr",   20.0, 50.0, 20.0, 50.0 )  # offs:65 thr:20-50
802
-        mod_range( presetL, "off",   10.0, 80.0, 10.0, 80.0)
842
+        mod_range( presetL, "ceil",   10.0, 80.0, 10.0, 80.0)
803 843
         mod_range( presetL, "cigain", 14.0,  14.0,  14.0,  14.0 )
804 844
 
805 845
 
@@ -845,7 +885,7 @@ if __name__ == "__main__":
845 885
             mod_range( presetL, "lwr",   8.0,  1.0, 8.0, 1.0)    
846 886
             mod_range( presetL, "cigain", 10.0,  14.0,  10.0,  14.0 )
847 887
         
848
-    if 1: # 3/11/17
888
+    if 0: # 3/11/17
849 889
 
850 890
         seq1L =[
851 891
             (1015, None)  # meas 57 (just before section 29)
@@ -859,10 +899,10 @@ if __name__ == "__main__":
859 899
         # generate 4 lines connecting the diagnals of a cube
860 900
 
861 901
         mod_range( presetL, "thr",    10.0, 80.0, 10.0, 80.0 )  # line 1
862
-        mod_range( presetL, "off",    10.0, 99.0, 10.0, 99.0)
902
+        mod_range( presetL, "ceil",    10.0, 99.0, 10.0, 99.0)
863 903
 
864 904
         #mod_range( presetL, "thr",    10.0, 80.0, 10.0, 80.0 )  #  line 2
865
-        #mod_range( presetL, "off",    99.0, 10.0, 99.0, 10.0)
905
+        #mod_range( presetL, "ceil",    99.0, 10.0, 99.0, 10.0)
866 906
         
867 907
         #mod_range( presetL, "upr",  5.0,  -1.5,  5.0,  -1.5 )    
868 908
         mod_range( presetL, "upr", -1.5,  5.0,  -1.5, 5.0 )
@@ -871,8 +911,41 @@ if __name__ == "__main__":
871 911
         
872 912
         mod_range( presetL, "cigain", 14.0, 14.0, 14.0, 14.0 )
873 913
 
914
+    if 0: # 8/12/17 f_1 -> b
915
+
916
+        seq1L =[ (875,None) ]
917
+
918
+        presetL = dupl_preset( dfltPresetL, "f_1", dfltLabelsL)
919
+        
920
+        mod_range( presetL, "thr",    50.0, 77.0, 50.0, 74.0 ) 
921
+        mod_range( presetL, "upr",    -3.0, -0.5, -3.0, -0.5 ) 
922
+        mod_range( presetL, "lwr",     1.0,  3.0,  1.0,  2.0 ) 
874 923
         
924
+    if 0: # 8/12/17 f_1 -> g_1_d
925
+
926
+        seq1L =[ (894,None) ]
927
+
928
+        presetL = dupl_preset( dfltPresetL, "f_1", dfltLabelsL)
929
+        
930
+        mod_range( presetL, "thr",    50.0, 40.0, 50.0, 34.0 ) 
931
+        mod_range( presetL, "upr",    -3.0, -0.4, -3.0, -0.3 ) 
932
+        mod_range( presetL, "lwr",     1.0,  7.0,  1.0,  5.0 )
933
+        mod_range( presetL, "ceil",    0.0, 60.0,  0.0, 64.0 )
934
+        mod_range( presetL, "expo",    1.0,  7.0,  1.0,  5.0 )
935
+        mod_range( presetL, "mix",     0.0,  1.0,  0.0,  1.0 )
875 936
             
937
+    if 1: # 8/12/17 b -> g_1_d
938
+
939
+        seq1L =[ (1001,None) ]
940
+
941
+        presetL = dupl_preset( dfltPresetL, "b", dfltLabelsL)
942
+        
943
+        mod_range( presetL, "thr",    77.0, 40.0, 74.0, 34.0 ) 
944
+        mod_range( presetL, "upr",    -0.5, -0.4, -0.5, -0.3 ) 
945
+        mod_range( presetL, "lwr",     3.0,  7.0,  2.0,  5.0 )
946
+        mod_range( presetL, "ceil",    0.0, 60.0,  0.0, 64.0 )
947
+        mod_range( presetL, "expo",    1.0,  7.0,  1.0,  5.0 )
948
+        mod_range( presetL, "mix",     0.0,  1.0,  0.0,  1.0 )
876 949
         
877 950
     # thr    upr  lwr   offs
878 951
     # 65   -0.05  1.5   0.0

+ 2
- 2
src/kc/data/mod_simple_seq_2u.js View File

@@ -1,7 +1,7 @@
1 1
 {
2 2
  seq_a:
3 3
  [
4
-/* 
4
+ /*
5 5
    { loc: -1 type:exec val:init }
6 6
    { loc: -1           val:preset_dry }
7 7
 
@@ -63,7 +63,7 @@
63 63
    { loc:1411          val:preset_g }
64 64
    { loc:1427          val:preset_dry } 
65 65
    { loc:1447          val:preset_a }
66
-*/   
66
+*/
67 67
 
68 68
    { loc: -1 type:exec val:init }
69 69
    { loc: -1           val:preset_dry }

Loading…
Cancel
Save