nodeskini 1.0.6 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,200 +1,10 @@
1
- var Piano, StartTransSaxo, Saxo, Piano1Intro1, Piano1Intro2, Piano1Intro3, Piano1Intro4, Piano1Intro5, Piano1Intro6, Piano1Intro7, Piano1Milieu1, Piano1Milieu2, Piano1Milieu3, Piano1Milieu4, Piano1Milieu5, Piano1Milieu6, Piano1Milieu7, Piano1Fin1, Piano1Fin2, Piano1Fin3, Piano1Fin4, Piano1Fin5, Piano1Fin6, Piano1Fin7, Brass, SaxIntro1, SaxIntro2, SaxIntro3, SaxIntro4, SaxIntro5, SaxIntro6, SaxIntro7, SaxMilieu1, SaxMilieu2, SaxMilieu3, SaxMilieu4, SaxMilieu5, SaxMilieu6, SaxMilieu7, SaxFin1, SaxFin2, SaxFin3, SaxFin4, SaxFin5, SaxFin6, SaxFin7, Flute, Percu, BrassIntro1, BrassIntro2, BrassIntro3, BrassIntro4, BrassIntro5, BrassIntro6, BrassIntro7, BrassMilieu1, BrassMilieu2, BrassMilieu3, BrassMilieu4, BrassMilieu5, BrassMilieu6, BrassMilieu7, BrassFin1, BrassFin2, BrassFin3, BrassFin4, BrassFin5, BrassFin6, BrassFin7, tick, FluteIntro1, FluteIntro2, FluteIntro3, FluteIntro4, FluteIntro5, FluteIntro6, FluteIntro7, FluteMilieu1, FluteMilieu2, FluteMilieu3, FluteMilieu4, FluteMilieu5, FluteMilieu6, FluteMilieu7, FluteFin1, FluteFin2, FluteFin3, FluteFin4, FluteFin5, FluteFin6, FluteFin7, TransPianoEtNappe, Percu1, Percu2, Percu3, Percu4, Percu5, Percu6, Percu7, TransPianoEtNappe2, TransPianoEtNappe3, TransSaxo, nappeViolons, Flesh, Massive;
1
+ var FluteC, FluteEb, FluteC1, FluteC2, FluteC3, FluteC4, FluteC5, FluteC6, FluteC7, FluteC8, FluteC9, FluteC10, FluteC11, FluteC12, FluteC13, FluteC14, FluteC15, FluteFmin, tick, FluteEb1, FluteEb2, FluteEb3, FluteEb4, FluteEb5, FluteEb6, FluteEb7, FluteEb8, FluteEb9, FluteEb10, FluteEb11, FluteEb12, FluteEb13, FluteEb14, FluteEb15, FluteFmin1, FluteFmin2, FluteFmin3, FluteFmin4, FluteFmin5, FluteFmin6, FluteFmin7, FluteFmin8, FluteFmin9, FluteFmin10, FluteFmin11, FluteFmin12, FluteFmin13, FluteFmin14, FluteFmin15, PianoC, PianoEb, PianoFmin;
2
2
 
3
3
 
4
- // Les patterns de cette pièce sont organisés par types et sont dans des réservoirs.
5
- // On a donc un contrôle sur la construction des phrases musicales.
6
- // Le simulateur a des contraintes sur les timers : 3000 min et
7
- // 3010 max avec 20 pulse max d'attente. Ceci permet de faire appel
8
- // aux tanks en contrôlant/limitant les répétitions de patterns.
9
- // Si le simulateur va trop vite, il peut rappeler un
10
- // pattern avant qu'il ait été dévalidé sur le serveur,
11
- // surtout quand le paramètre reactOnPlay est actif.
12
- // Il y a deux groupes 1 et 0. Il faut utiliser simulateurListe.
13
- //
14
- //
15
- //
16
- //
17
- //
18
- //
19
- //
20
- //
21
- //
22
- //
23
- //
24
- //
25
- //
26
- //
27
- //
28
- //
29
- //
30
- //
31
- //
32
- //
33
- //
34
- //
35
- //
36
- //
37
- //
38
- //
39
- //
40
- //
41
- //
42
- //
43
- //
44
- //
45
- //
46
- //
47
- //
48
- //
49
- //
50
- //
51
- //
52
- //
53
- //
54
- //
55
- //
56
- //
57
- //
58
- //
59
- //
60
- //
61
- //
62
- //
63
- //
64
- //
65
- //
66
- //
67
- //
68
- //
69
- //
70
- //
71
- //
72
- //
73
- //
74
- //
75
- //
76
- //
77
- //
78
- //
79
- //
80
- //
81
- //
82
- //
83
- //
84
- //
85
- //
86
- //
87
- //
88
- //
89
- //
90
- //
91
- //
92
- //
93
- //
94
- //
95
- //
96
- //
97
- //
98
- //
99
- //
100
- //
101
- //
102
- //
103
- //
104
- //
105
- //
106
- //
107
- //
108
- //
109
- //
110
- //
111
- //
112
- //
113
- //
114
- //
115
- //
116
- //
117
- //
118
- //
119
- //
120
- //
121
- //
122
- //
123
- //
124
- //
125
- //
126
- //
127
- //
128
- //
129
- //
130
- //
131
- //
132
- //
133
- //
134
- //
135
- //
136
- //
137
- //
138
- //
139
- //
140
- //
141
- //
142
- // Pour cette pièce, il y a un groupe 0. Attention au simulateur.
143
- //
144
- //
145
- //
146
- //
147
- //
148
- //
149
- //
150
- //
151
- //
152
- //
153
- //
154
- //
155
- //
156
- //
157
- //
158
- //
159
- //
160
- //
161
- //
162
- //
163
- //
164
- //
165
- //
166
- //
167
- //
168
- //
169
- //
170
- //
171
- //
172
- //
173
- //
174
- //
175
- //
176
- //
177
- //
178
- //
179
- //
180
- //
181
- //
182
- //
183
- //
184
- //
185
- //
186
- //
187
- //
188
- //
189
- //
190
- //
191
- //
192
- //
193
- //
194
- //
195
- //
196
- // Avec opus4V3 dans Ableton Live et lancer deux simulateurs en groupe 0 et 1.
4
+ // Fonctionne avec EtudeHarmonie5.als.
5
+ // 2 simulateurs : 0 et 1.
197
6
  //
7
+ // Type Horizontaux et verticaux, et reservoirs
198
8
  //
199
9
  //
200
10
  //
@@ -244,12 +54,11 @@ export function setServ(ser, daw, groupeCS, oscMidi, mix){
244
54
 
245
55
  function setTempo(value, param){
246
56
  tempoGlobal = value;
247
-
248
- // if(midimix.getAbletonLinkStatus()) {
249
- // if(debug) console.log("ORCHESTRATION: set tempo Link:", value);
250
- // midimix.setTempoLink(value);
251
- // return;
252
- // }
57
+ if(midimix.getAbletonLinkStatus()) {
58
+ if(debug) console.log("ORCHESTRATION: set tempo Link:", value);
59
+ midimix.setTempoLink(value);
60
+ return;
61
+ }
253
62
 
254
63
  if ( value > tempoMax || value < tempoMin) {
255
64
  console.log("ERR: Tempo set out of range:", value, "Should be between:", tempoMin, "and", tempoMax);
@@ -286,1195 +95,113 @@ export function setSignals(param) {
286
95
  "INTERFACEZ_RC7", "INTERFACEZ_RC8", "INTERFACEZ_RC9", "INTERFACEZ_RC10", "INTERFACEZ_RC11"];
287
96
 
288
97
 
289
- const Piano = hiphop module () {
98
+ const FluteC = hiphop module () {
290
99
  in stopReservoir;
291
- in Piano1Intro1IN;
292
- in Piano1Intro2IN;
293
- in Piano1Intro3IN;
294
- in Piano1Intro4IN;
295
- in Piano1Intro5IN;
296
- in Piano1Intro6IN;
297
- in Piano1Intro7IN;
298
- in Piano1Milieu1IN;
299
- in Piano1Milieu2IN;
300
- in Piano1Milieu3IN;
301
- in Piano1Milieu4IN;
302
- in Piano1Milieu5IN;
303
- in Piano1Milieu6IN;
304
- in Piano1Milieu7IN;
305
- in Piano1Fin1IN;
306
- in Piano1Fin2IN;
307
- in Piano1Fin3IN;
308
- in Piano1Fin4IN;
309
- in Piano1Fin5IN;
310
- in Piano1Fin6IN;
311
- in Piano1Fin7IN;
312
- out Piano1Intro1OUT;
313
- out Piano1Intro2OUT;
314
- out Piano1Intro3OUT;
315
- out Piano1Intro4OUT;
316
- out Piano1Intro5OUT;
317
- out Piano1Intro6OUT;
318
- out Piano1Intro7OUT;
319
- out Piano1Milieu1OUT;
320
- out Piano1Milieu2OUT;
321
- out Piano1Milieu3OUT;
322
- out Piano1Milieu4OUT;
323
- out Piano1Milieu5OUT;
324
- out Piano1Milieu6OUT;
325
- out Piano1Milieu7OUT;
326
- out Piano1Fin1OUT;
327
- out Piano1Fin2OUT;
328
- out Piano1Fin3OUT;
329
- out Piano1Fin4OUT;
330
- out Piano1Fin5OUT;
331
- out Piano1Fin6OUT;
332
- out Piano1Fin7OUT;
333
-
334
- ${ tank.makeReservoir(0, ["Piano1Intro1","Piano1Intro2","Piano1Intro3","Piano1Intro4","Piano1Intro5","Piano1Intro6","Piano1Intro7","Piano1Milieu1","Piano1Milieu2","Piano1Milieu3","Piano1Milieu4","Piano1Milieu5","Piano1Milieu6","Piano1Milieu7","Piano1Fin1","Piano1Fin2","Piano1Fin3","Piano1Fin4","Piano1Fin5","Piano1Fin6","Piano1Fin7"]) };
100
+ in FluteC1IN;
101
+ in FluteC2IN;
102
+ in FluteC3IN;
103
+ in FluteC4IN;
104
+ in FluteC5IN;
105
+ in FluteC6IN;
106
+ in FluteC7IN;
107
+ in FluteC8IN;
108
+ in FluteC9IN;
109
+ in FluteC10IN;
110
+ in FluteC11IN;
111
+ in FluteC12IN;
112
+ in FluteC13IN;
113
+ in FluteC14IN;
114
+ in FluteC15IN;
115
+ out FluteC1OUT;
116
+ out FluteC2OUT;
117
+ out FluteC3OUT;
118
+ out FluteC4OUT;
119
+ out FluteC5OUT;
120
+ out FluteC6OUT;
121
+ out FluteC7OUT;
122
+ out FluteC8OUT;
123
+ out FluteC9OUT;
124
+ out FluteC10OUT;
125
+ out FluteC11OUT;
126
+ out FluteC12OUT;
127
+ out FluteC13OUT;
128
+ out FluteC14OUT;
129
+ out FluteC15OUT;
130
+
131
+ ${ tank.makeReservoir(255, ["FluteC1","FluteC2","FluteC3","FluteC4","FluteC5","FluteC6","FluteC7","FluteC8","FluteC9","FluteC10","FluteC11","FluteC12","FluteC13","FluteC14","FluteC15"]) };
335
132
  }
336
133
 
337
- const Saxo = hiphop module () {
134
+ const FluteEb = hiphop module () {
338
135
  in stopReservoir;
339
- in SaxIntro1IN;
340
- in SaxIntro2IN;
341
- in SaxIntro3IN;
342
- in SaxIntro4IN;
343
- in SaxIntro5IN;
344
- in SaxIntro6IN;
345
- in SaxIntro7IN;
346
- in SaxMilieu1IN;
347
- in SaxMilieu2IN;
348
- in SaxMilieu3IN;
349
- in SaxMilieu4IN;
350
- in SaxMilieu5IN;
351
- in SaxMilieu6IN;
352
- in SaxMilieu7IN;
353
- in SaxFin1IN;
354
- in SaxFin2IN;
355
- in SaxFin3IN;
356
- in SaxFin4IN;
357
- in SaxFin5IN;
358
- in SaxFin6IN;
359
- in SaxFin7IN;
360
- out SaxIntro1OUT;
361
- out SaxIntro2OUT;
362
- out SaxIntro3OUT;
363
- out SaxIntro4OUT;
364
- out SaxIntro5OUT;
365
- out SaxIntro6OUT;
366
- out SaxIntro7OUT;
367
- out SaxMilieu1OUT;
368
- out SaxMilieu2OUT;
369
- out SaxMilieu3OUT;
370
- out SaxMilieu4OUT;
371
- out SaxMilieu5OUT;
372
- out SaxMilieu6OUT;
373
- out SaxMilieu7OUT;
374
- out SaxFin1OUT;
375
- out SaxFin2OUT;
376
- out SaxFin3OUT;
377
- out SaxFin4OUT;
378
- out SaxFin5OUT;
379
- out SaxFin6OUT;
380
- out SaxFin7OUT;
381
-
382
- ${ tank.makeReservoir(0, ["SaxIntro1","SaxIntro2","SaxIntro3","SaxIntro4","SaxIntro5","SaxIntro6","SaxIntro7","SaxMilieu1","SaxMilieu2","SaxMilieu3","SaxMilieu4","SaxMilieu5","SaxMilieu6","SaxMilieu7","SaxFin1","SaxFin2","SaxFin3","SaxFin4","SaxFin5","SaxFin6","SaxFin7"]) };
383
- }
384
-
385
- const Brass = hiphop module () {
386
- in stopReservoir;
387
- in BrassIntro1IN;
388
- in BrassIntro2IN;
389
- in BrassIntro3IN;
390
- in BrassIntro4IN;
391
- in BrassIntro5IN;
392
- in BrassIntro6IN;
393
- in BrassIntro7IN;
394
- in BrassMilieu1IN;
395
- in BrassMilieu2IN;
396
- in BrassMilieu3IN;
397
- in BrassMilieu4IN;
398
- in BrassMilieu5IN;
399
- in BrassMilieu6IN;
400
- in BrassMilieu7IN;
401
- in BrassFin1IN;
402
- in BrassFin2IN;
403
- in BrassFin3IN;
404
- in BrassFin4IN;
405
- in BrassFin5IN;
406
- in BrassFin6IN;
407
- in BrassFin7IN;
408
- out BrassIntro1OUT;
409
- out BrassIntro2OUT;
410
- out BrassIntro3OUT;
411
- out BrassIntro4OUT;
412
- out BrassIntro5OUT;
413
- out BrassIntro6OUT;
414
- out BrassIntro7OUT;
415
- out BrassMilieu1OUT;
416
- out BrassMilieu2OUT;
417
- out BrassMilieu3OUT;
418
- out BrassMilieu4OUT;
419
- out BrassMilieu5OUT;
420
- out BrassMilieu6OUT;
421
- out BrassMilieu7OUT;
422
- out BrassFin1OUT;
423
- out BrassFin2OUT;
424
- out BrassFin3OUT;
425
- out BrassFin4OUT;
426
- out BrassFin5OUT;
427
- out BrassFin6OUT;
428
- out BrassFin7OUT;
429
-
430
- ${ tank.makeReservoir(0, ["BrassIntro1","BrassIntro2","BrassIntro3","BrassIntro4","BrassIntro5","BrassIntro6","BrassIntro7","BrassMilieu1","BrassMilieu2","BrassMilieu3","BrassMilieu4","BrassMilieu5","BrassMilieu6","BrassMilieu7","BrassFin1","BrassFin2","BrassFin3","BrassFin4","BrassFin5","BrassFin6","BrassFin7"]) };
431
- }
432
-
433
- const Flute = hiphop module () {
434
- in stopReservoir;
435
- in FluteIntro1IN;
436
- in FluteIntro2IN;
437
- in FluteIntro3IN;
438
- in FluteIntro4IN;
439
- in FluteIntro5IN;
440
- in FluteIntro6IN;
441
- in FluteIntro7IN;
442
- in FluteMilieu1IN;
443
- in FluteMilieu2IN;
444
- in FluteMilieu3IN;
445
- in FluteMilieu4IN;
446
- in FluteMilieu5IN;
447
- in FluteMilieu6IN;
448
- in FluteMilieu7IN;
449
- in FluteFin1IN;
450
- in FluteFin2IN;
451
- in FluteFin3IN;
452
- in FluteFin4IN;
453
- in FluteFin5IN;
454
- in FluteFin6IN;
455
- in FluteFin7IN;
456
- out FluteIntro1OUT;
457
- out FluteIntro2OUT;
458
- out FluteIntro3OUT;
459
- out FluteIntro4OUT;
460
- out FluteIntro5OUT;
461
- out FluteIntro6OUT;
462
- out FluteIntro7OUT;
463
- out FluteMilieu1OUT;
464
- out FluteMilieu2OUT;
465
- out FluteMilieu3OUT;
466
- out FluteMilieu4OUT;
467
- out FluteMilieu5OUT;
468
- out FluteMilieu6OUT;
469
- out FluteMilieu7OUT;
470
- out FluteFin1OUT;
471
- out FluteFin2OUT;
472
- out FluteFin3OUT;
473
- out FluteFin4OUT;
474
- out FluteFin5OUT;
475
- out FluteFin6OUT;
476
- out FluteFin7OUT;
477
-
478
- ${ tank.makeReservoir(0, ["FluteIntro1","FluteIntro2","FluteIntro3","FluteIntro4","FluteIntro5","FluteIntro6","FluteIntro7","FluteMilieu1","FluteMilieu2","FluteMilieu3","FluteMilieu4","FluteMilieu5","FluteMilieu6","FluteMilieu7","FluteFin1","FluteFin2","FluteFin3","FluteFin4","FluteFin5","FluteFin6","FluteFin7"]) };
136
+ in FluteEb1IN;
137
+ in FluteEb2IN;
138
+ in FluteEb3IN;
139
+ in FluteEb4IN;
140
+ in FluteEb5IN;
141
+ in FluteEb6IN;
142
+ in FluteEb7IN;
143
+ in FluteEb8IN;
144
+ in FluteEb9IN;
145
+ in FluteEb10IN;
146
+ in FluteEb11IN;
147
+ in FluteEb12IN;
148
+ in FluteEb13IN;
149
+ in FluteEb14IN;
150
+ in FluteEb15IN;
151
+ out FluteEb1OUT;
152
+ out FluteEb2OUT;
153
+ out FluteEb3OUT;
154
+ out FluteEb4OUT;
155
+ out FluteEb5OUT;
156
+ out FluteEb6OUT;
157
+ out FluteEb7OUT;
158
+ out FluteEb8OUT;
159
+ out FluteEb9OUT;
160
+ out FluteEb10OUT;
161
+ out FluteEb11OUT;
162
+ out FluteEb12OUT;
163
+ out FluteEb13OUT;
164
+ out FluteEb14OUT;
165
+ out FluteEb15OUT;
166
+
167
+ ${ tank.makeReservoir(255, ["FluteEb1","FluteEb2","FluteEb3","FluteEb4","FluteEb5","FluteEb6","FluteEb7","FluteEb8","FluteEb9","FluteEb10","FluteEb11","FluteEb12","FluteEb13","FluteEb14","FluteEb15"]) };
479
168
  }
480
169
 
481
- const Percu = hiphop module () {
170
+ const FluteFmin = hiphop module () {
482
171
  in stopReservoir;
483
- in Percu1IN;
484
- in Percu2IN;
485
- in Percu3IN;
486
- in Percu4IN;
487
- in Percu5IN;
488
- in Percu6IN;
489
- in Percu7IN;
490
- out Percu1OUT;
491
- out Percu2OUT;
492
- out Percu3OUT;
493
- out Percu4OUT;
494
- out Percu5OUT;
495
- out Percu6OUT;
496
- out Percu7OUT;
497
-
498
- ${ tank.makeReservoir(0, ["Percu1","Percu2","Percu3","Percu4","Percu5","Percu6","Percu7"]) };
172
+ in FluteFmin1IN;
173
+ in FluteFmin2IN;
174
+ in FluteFmin3IN;
175
+ in FluteFmin4IN;
176
+ in FluteFmin5IN;
177
+ in FluteFmin6IN;
178
+ in FluteFmin7IN;
179
+ in FluteFmin8IN;
180
+ in FluteFmin9IN;
181
+ in FluteFmin10IN;
182
+ in FluteFmin11IN;
183
+ in FluteFmin12IN;
184
+ in FluteFmin13IN;
185
+ in FluteFmin14IN;
186
+ in FluteFmin15IN;
187
+ out FluteFmin1OUT;
188
+ out FluteFmin2OUT;
189
+ out FluteFmin3OUT;
190
+ out FluteFmin4OUT;
191
+ out FluteFmin5OUT;
192
+ out FluteFmin6OUT;
193
+ out FluteFmin7OUT;
194
+ out FluteFmin8OUT;
195
+ out FluteFmin9OUT;
196
+ out FluteFmin10OUT;
197
+ out FluteFmin11OUT;
198
+ out FluteFmin12OUT;
199
+ out FluteFmin13OUT;
200
+ out FluteFmin14OUT;
201
+ out FluteFmin15OUT;
202
+
203
+ ${ tank.makeReservoir(255, ["FluteFmin1","FluteFmin2","FluteFmin3","FluteFmin4","FluteFmin5","FluteFmin6","FluteFmin7","FluteFmin8","FluteFmin9","FluteFmin10","FluteFmin11","FluteFmin12","FluteFmin13","FluteFmin14","FluteFmin15"]) };
499
204
  }
500
- // La transposition si fait dans Ableton Live. D'où les
501
- // ratios dans l'initialisation de la pièce pour cadrer
502
- // avec le paramètre MIDI des CC. (min -36, max +36).
503
- // 64 -> 0
504
- // 67 -> +2 ...
505
- //
506
- //
507
- //
508
- //
509
- //
510
- //
511
- //
512
- //
513
- //
514
- //
515
- //
516
- //
517
- //
518
- //
519
- //
520
- //
521
- //
522
- //
523
- //
524
- //
525
- //
526
- //
527
- //
528
- //
529
- //
530
- //
531
- //
532
- //
533
- //
534
- //
535
- //
536
- //
537
- //
538
- //
539
- //
540
- //
541
- //
542
- //
543
- //
544
- //
545
- //
546
- //
547
- //
548
- //
549
- //
550
- //
551
- //
552
- //
553
- //
554
- //
555
- //
556
- //
557
- //
558
- //
559
- //
560
- //
561
- //
562
- //
563
- //
564
- //
565
- //
566
- //
567
- //
568
- //
569
- //
570
- //
571
- //
572
- //
573
- //
574
- //
575
- //
576
- //
577
- //
578
- //
579
- //
580
- //
581
- //
582
- //
583
- //
584
- //
585
- //
586
- //
587
- //
588
- //
589
- //
590
- //
591
- //
592
- //
593
- //
594
- //
595
- //
596
- //
597
- //
598
- //
599
- //
600
- //
601
- //
602
- //
603
- //
604
- //
605
- //
606
- //
607
- //
608
- //
609
- //
610
- //
611
- //
612
- //
613
- //
614
- //
615
- //
616
- //
617
- //
618
- //
619
- //
620
- //
621
- //
622
- //
623
- //
624
- //
625
- //
626
- //
627
- //
628
- //
629
- //
630
- //
631
- //
632
- //
633
- //
634
- //
635
- //
636
- //
637
- //
638
- //
639
- //
640
- //
641
- //
642
- //
643
- //
644
- //
645
- //
646
- //
647
- //
648
- //
649
- //
650
- //
651
- //
652
- //
653
- //
654
- //
655
- //
656
- //
657
- //
658
- //
659
- //
660
- //
661
- //
662
- //
663
- //
664
- //
665
- //
666
- //
667
- //
668
- //
669
- //
670
- //
671
- //
672
- //
673
- //
674
- //
675
- //
676
- //
677
- //
678
- //
679
- //
680
- //
681
- //
682
- //
683
- //
684
- //
685
- //
686
- //
687
- //
688
- //
689
- //
690
- //
691
- //
692
- //
693
- //
694
- //
695
- //
696
- //
697
- //
698
- //
699
- //
700
-
701
- const TransPianoEtNappe = hiphop module() {
702
-
703
- inout tick;
704
-
705
-
706
- loop{
707
-
708
- host{
709
- transposeValue = 0; // !! Ne devrait pas être une variable commune si on veut incrémenter.
710
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
711
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
712
- }
713
-
714
- await count(1,tick.now);
715
-
716
- host{
717
- transposeValue = -2; // !! Ne devrait pas être une variable commune si on veut incrémenter.
718
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
719
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
720
- }
721
-
722
- await count(1,tick.now);
723
-
724
- host{
725
- transposeValue = 2; // !! Ne devrait pas être une variable commune si on veut incrémenter.
726
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
727
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
728
- }
729
-
730
- await count(1,tick.now);
731
-
732
- }
733
-
734
- }
735
- // La transposition si fait dans Ableton Live. D'où les
736
- // ratios dans l'initialisation de la pièce pour cadrer
737
- // avec le paramètre MIDI des CC. (min -36, max +36).
738
- // 64 -> 0
739
- // 67 -> +2 ...
740
- //
741
- //
742
- //
743
- //
744
- //
745
- //
746
- //
747
- //
748
- //
749
- //
750
- //
751
- //
752
- //
753
- //
754
- //
755
- //
756
- //
757
- //
758
- //
759
- //
760
- //
761
- //
762
- //
763
- //
764
- //
765
- //
766
- //
767
- //
768
- //
769
- //
770
- //
771
- //
772
- //
773
- //
774
- //
775
- //
776
- //
777
- //
778
- //
779
- //
780
- //
781
- //
782
- //
783
- //
784
- //
785
- //
786
- //
787
- //
788
- //
789
- //
790
- //
791
- //
792
- //
793
- //
794
- //
795
- //
796
- //
797
- //
798
- //
799
- //
800
- //
801
- //
802
- //
803
- //
804
- //
805
- //
806
- //
807
- //
808
- //
809
- //
810
- //
811
- //
812
- //
813
- //
814
- //
815
- //
816
- //
817
- //
818
- //
819
- //
820
- //
821
- //
822
- //
823
- //
824
- //
825
- //
826
- //
827
- //
828
- //
829
- //
830
- //
831
- //
832
- //
833
- //
834
- //
835
- //
836
- //
837
- //
838
- //
839
- //
840
- //
841
- //
842
- //
843
- //
844
- //
845
- //
846
- //
847
- //
848
- //
849
- //
850
- //
851
- //
852
- //
853
- //
854
- //
855
- //
856
- //
857
- //
858
- //
859
- //
860
- //
861
- //
862
- //
863
- //
864
- //
865
- //
866
- //
867
- //
868
- //
869
- //
870
- //
871
- //
872
- //
873
- //
874
- //
875
- //
876
- //
877
- //
878
- //
879
- //
880
- //
881
- //
882
- //
883
- //
884
- //
885
- //
886
- //
887
- //
888
- //
889
- //
890
- //
891
- //
892
- //
893
- //
894
- //
895
- //
896
- //
897
- //
898
- //
899
- //
900
- //
901
- //
902
- //
903
- //
904
- //
905
- //
906
- //
907
- //
908
- //
909
- //
910
- //
911
- //
912
- //
913
- //
914
- //
915
- //
916
- //
917
- //
918
- //
919
- //
920
- //
921
- //
922
- //
923
- //
924
- //
925
- //
926
- //
927
- //
928
- //
929
- //
930
- //
931
- //
932
- //
933
- //
934
- //
935
-
936
- const TransPianoEtNappe2 = hiphop module() {
937
-
938
- inout tick;
939
-
940
-
941
- loop{
942
-
943
- host{
944
- transposeValue = 0; // !! Ne devrait pas être une variable commune si on veut incrémenter.
945
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
946
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
947
- }
948
-
949
- await count(2,tick.now);
950
-
951
- host{
952
- transposeValue = -2; // !! Ne devrait pas être une variable commune si on veut incrémenter.
953
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
954
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
955
- }
956
-
957
- await count(2,tick.now);
958
-
959
- host{
960
- transposeValue = 2; // !! Ne devrait pas être une variable commune si on veut incrémenter.
961
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
962
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
963
- }
964
-
965
- await count(2,tick.now);
966
-
967
- }
968
-
969
- }
970
- // La transposition si fait dans Ableton Live. D'où les
971
- // ratios dans l'initialisation de la pièce pour cadrer
972
- // avec le paramètre MIDI des CC. (min -36, max +36).
973
- // 64 -> 0
974
- // 67 -> +2 ...
975
- //
976
- //
977
- //
978
- //
979
- //
980
- //
981
- //
982
- //
983
- //
984
- //
985
- //
986
- //
987
- //
988
- //
989
- //
990
- //
991
- //
992
- //
993
- //
994
- //
995
- //
996
- //
997
- //
998
- //
999
- //
1000
- //
1001
- //
1002
- //
1003
- //
1004
- //
1005
- //
1006
- //
1007
- //
1008
- //
1009
- //
1010
- //
1011
- //
1012
- //
1013
- //
1014
- //
1015
- //
1016
- //
1017
- //
1018
- //
1019
- //
1020
- //
1021
- //
1022
- //
1023
- //
1024
- //
1025
- //
1026
- //
1027
- //
1028
- //
1029
- //
1030
- //
1031
- //
1032
- //
1033
- //
1034
- //
1035
- //
1036
- //
1037
- //
1038
- //
1039
- //
1040
- //
1041
- //
1042
- //
1043
- //
1044
- //
1045
- //
1046
- //
1047
- //
1048
- //
1049
- //
1050
- //
1051
- //
1052
- //
1053
- //
1054
- //
1055
- //
1056
- //
1057
- //
1058
- //
1059
- //
1060
- //
1061
- //
1062
- //
1063
- //
1064
- //
1065
- //
1066
- //
1067
- //
1068
- //
1069
- //
1070
- //
1071
- //
1072
- //
1073
- //
1074
- //
1075
- //
1076
- //
1077
- //
1078
- //
1079
- //
1080
- //
1081
- //
1082
- //
1083
- //
1084
- //
1085
- //
1086
- //
1087
- //
1088
- //
1089
- //
1090
- //
1091
- //
1092
- //
1093
- //
1094
- //
1095
- //
1096
- //
1097
- //
1098
- //
1099
- //
1100
- //
1101
- //
1102
- //
1103
- //
1104
- //
1105
- //
1106
- //
1107
- //
1108
- //
1109
- //
1110
- //
1111
- //
1112
- //
1113
- //
1114
- //
1115
- //
1116
- //
1117
- //
1118
- //
1119
- //
1120
- //
1121
- //
1122
- //
1123
- //
1124
- //
1125
- //
1126
- //
1127
- //
1128
- //
1129
- //
1130
- //
1131
- //
1132
- //
1133
- //
1134
- //
1135
- //
1136
- //
1137
- //
1138
- //
1139
- //
1140
- //
1141
- //
1142
- //
1143
- //
1144
- //
1145
- //
1146
- //
1147
- //
1148
- //
1149
- //
1150
- //
1151
- //
1152
- //
1153
- //
1154
- //
1155
- //
1156
- //
1157
- //
1158
- //
1159
- //
1160
- //
1161
- //
1162
- //
1163
- //
1164
- //
1165
- //
1166
- //
1167
- //
1168
- //
1169
- //
1170
-
1171
- const TransPianoEtNappe3 = hiphop module() {
1172
-
1173
- inout tick;
1174
-
1175
-
1176
- loop{
1177
-
1178
- host{
1179
- transposeValue = 0; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1180
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
1181
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1182
- }
1183
-
1184
- await count(1,tick.now);
1185
-
1186
- host{
1187
- transposeValue = -2; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1188
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
1189
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1190
- }
1191
-
1192
- await count(1,tick.now);
1193
-
1194
- host{
1195
- transposeValue = 2; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1196
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
1197
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1198
- }
1199
-
1200
- await count(1,tick.now);
1201
-
1202
- host{
1203
- transposeValue = -1; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1204
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
1205
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1206
- }
1207
-
1208
- await count(1,tick.now);
1209
-
1210
- host{
1211
- transposeValue = 1; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1212
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
1213
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1214
- }
1215
-
1216
- await count(1,tick.now);
1217
-
1218
- }
1219
-
1220
- }
1221
- // La transposition si fait dans Ableton Live. D'où les
1222
- // ratios dans l'initialisation de la pièce pour cadrer
1223
- // avec le paramètre MIDI des CC. (min -36, max +36).
1224
- // 64 -> 0
1225
- // 67 -> +2 ...
1226
- //
1227
- //
1228
- //
1229
- //
1230
- //
1231
- //
1232
- //
1233
- //
1234
- //
1235
- //
1236
- //
1237
- //
1238
- //
1239
- //
1240
- //
1241
- //
1242
- //
1243
- //
1244
- //
1245
- //
1246
- //
1247
- //
1248
- //
1249
- //
1250
- //
1251
- //
1252
- //
1253
- //
1254
- //
1255
- //
1256
- //
1257
- //
1258
- //
1259
- //
1260
- //
1261
- //
1262
- //
1263
- //
1264
- //
1265
- //
1266
- //
1267
- //
1268
- //
1269
- //
1270
- //
1271
- //
1272
- //
1273
- //
1274
- //
1275
- //
1276
- //
1277
- //
1278
- //
1279
- //
1280
- //
1281
- //
1282
- //
1283
- //
1284
- //
1285
- //
1286
- //
1287
- //
1288
- //
1289
- //
1290
- //
1291
- //
1292
- //
1293
- //
1294
- //
1295
- //
1296
- //
1297
- //
1298
- //
1299
- //
1300
- //
1301
- //
1302
- //
1303
- //
1304
- //
1305
- //
1306
- //
1307
- //
1308
- //
1309
- //
1310
- //
1311
- //
1312
- //
1313
- //
1314
- //
1315
- //
1316
- //
1317
- //
1318
- //
1319
- //
1320
- //
1321
- //
1322
- //
1323
- //
1324
- //
1325
- //
1326
- //
1327
- //
1328
- //
1329
- //
1330
- //
1331
- //
1332
- //
1333
- //
1334
- //
1335
- //
1336
- //
1337
- //
1338
- //
1339
- //
1340
- //
1341
- //
1342
- //
1343
- //
1344
- //
1345
- //
1346
- //
1347
- //
1348
- //
1349
- //
1350
- //
1351
- //
1352
- //
1353
- //
1354
- //
1355
- //
1356
- //
1357
- //
1358
- //
1359
- //
1360
- //
1361
- //
1362
- //
1363
- //
1364
- //
1365
- //
1366
- //
1367
- //
1368
- //
1369
- //
1370
- //
1371
- //
1372
- //
1373
- //
1374
- //
1375
- //
1376
- //
1377
- //
1378
- //
1379
- //
1380
- //
1381
- //
1382
- //
1383
- //
1384
- //
1385
- //
1386
- //
1387
- //
1388
- //
1389
- //
1390
- //
1391
- //
1392
- //
1393
- //
1394
- //
1395
- //
1396
- //
1397
- //
1398
- //
1399
- //
1400
- //
1401
- //
1402
- //
1403
- //
1404
- //
1405
- //
1406
- //
1407
- //
1408
- //
1409
- //
1410
- //
1411
- //
1412
- //
1413
- //
1414
- //
1415
- //
1416
- //
1417
- //
1418
- //
1419
- //
1420
- //
1421
-
1422
- const TransSaxo = hiphop module() {
1423
-
1424
- inout tick;
1425
-
1426
- inout StartTransSaxo;
1427
-
1428
-
1429
- await immediate (StartTransSaxo.now);
1430
-
1431
- await count(2,tick.now);
1432
-
1433
- loop{
1434
-
1435
- host{
1436
- transposeValue = 0; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1437
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,72);
1438
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,72, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1439
- }
1440
-
1441
- await count(4,tick.now);
1442
-
1443
- host{
1444
- transposeValue = -5; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1445
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,72);
1446
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,72, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1447
- }
1448
-
1449
- await count(4,tick.now);
1450
-
1451
- host{
1452
- transposeValue = -7; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1453
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,72);
1454
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,72, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1455
- }
1456
-
1457
- await count(4,tick.now);
1458
-
1459
- await count(1,tick.now);
1460
-
1461
- host{
1462
- transposeValue = 0; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1463
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,72);
1464
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,72, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1465
- }
1466
-
1467
- await count(4,tick.now);
1468
-
1469
- host{
1470
- transposeValue = -1; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1471
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,72);
1472
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,72, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1473
- }
1474
-
1475
- }
1476
-
1477
- }
1478
205
 
1479
206
 
1480
207
  const Program = hiphop module() {
@@ -1485,8 +212,6 @@ export function setSignals(param) {
1485
212
  in ... ${ interTextIN };
1486
213
 
1487
214
 
1488
- inout StartTransSaxo;
1489
-
1490
215
 
1491
216
  loop{
1492
217
  await(start.now);
@@ -1500,519 +225,83 @@ export function setSignals(param) {
1500
225
  }
1501
226
  }par{
1502
227
 
1503
- host {console.log('-- Opus4 Blockly');}
1504
-
1505
- {
1506
-
1507
- host{
1508
- serveur.broadcast(JSON.stringify({
1509
- type: 'setListeDesTypes',
1510
- }));
1511
- }
1512
-
1513
228
  host{
1514
229
  serveur.broadcast(JSON.stringify({
1515
- type: 'listeDesTypes',
1516
- text:'1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10, 11'
1517
- }));
1518
- }
1519
-
1520
- host{
1521
- gcs.setpatternListLength([12,255]);
1522
- }
1523
-
230
+ type: 'setListeDesTypes',
231
+ }));
1524
232
  }
1525
233
 
1526
- {
234
+ host{setTempo(80, param);}
1527
235
 
1528
- host{
1529
- CCChannel= 1;
1530
- CCTempo = 100;
1531
- tempoMax = 160;
1532
- tempoMin = 40;
1533
- }
1534
-
1535
- host{setTempo(62, param);}
236
+ await immediate (tick.now);
1536
237
  host{gcs.setTimerDivision(1);}
1537
- host{
1538
- serveur.broadcast(JSON.stringify({
1539
- type: 'addSceneScore',
1540
- value:1
1541
- }));
1542
- }
1543
- yield;
1544
-
1545
- host{
1546
- ratioTranspose = 1.763;
1547
- offsetTranspose = 63.5;
1548
- if(debug) console.log("hiphop block transpose Parameters:", ratioTranspose, offsetTranspose);
1549
- }
1550
-
1551
- host{
1552
- transposeValue = 0; // !! Ne devrait pas être une variable commune si on veut incrémenter.
1553
- //console.log("hiphop block transpose: transposeValue:", transposeValue ,1,74);
1554
- oscMidiLocal.sendControlChange(param.busMidiDAW,1,74, Math.round(ratioTranspose * transposeValue + offsetTranspose ));
1555
- }
1556
-
1557
- }
1558
-
1559
- M370292 : {
1560
- fork{
1561
- run ${ Percu} () {*};
1562
-
1563
- }par{
1564
- await count(5, tick.now);
1565
- emit stopReservoir();
1566
- break M370292;
1567
- }
1568
- }
1569
-
1570
- host{
1571
- DAW.cleanQueues();
1572
- gcs.cleanChoiceList(255);
1573
- }
1574
-
1575
- host{
1576
- DAW.cleanQueue(5);
1577
- }
1578
-
1579
- {
1580
-
1581
- host{
1582
- serveur.broadcast(JSON.stringify({
1583
- type: 'alertInfoScoreON',
1584
- value:'Transposition-1 tick'
1585
- }));
1586
- }
1587
-
1588
- fork {
1589
-
1590
- M914075 : {
1591
- fork{
1592
- run ${ Piano} () {*};
1593
-
1594
- }par{
1595
- await count(5, tick.now);
1596
- emit stopReservoir();
1597
- break M914075;
1598
- }
1599
- }
1600
-
1601
- }
1602
-
1603
- par {
1604
-
1605
- abort{
1606
-
1607
- fork {
1608
-
1609
- run ${ TransPianoEtNappe} () {*};
1610
-
1611
- }
1612
-
1613
- par {
1614
-
1615
- signal inverseTempo;
1616
- host {console.log("-- Start move tempo")}
1617
- abort {
1618
- loop{
1619
- fork {
1620
- every count( 8, tick.now) {
1621
- emit inverseTempo();
1622
- }
1623
- }par{
1624
- loop{
1625
- abort{
1626
- every count(1, tick.now) {
1627
- host{
1628
- tempoGlobal += 5;
1629
- setTempo(tempoGlobal, param);
1630
- }
1631
- }
1632
- } when (inverseTempo.now);
1633
- abort {
1634
- every count(1, tick.now) {
1635
- host{
1636
- tempoGlobal -= 5;
1637
- setTempo(tempoGlobal, param);
1638
- }
1639
- }
1640
- } when (inverseTempo.now);
1641
- }
1642
- }
1643
- }
1644
- } when immediate(stopMoveTempo.now);
1645
- host {console.log("-- Stop move tempo")}
1646
-
1647
- }
1648
-
1649
- } when count(30, tick.now);
1650
-
1651
- }
1652
-
1653
- par {
1654
-
1655
- emit nappeViolonsOUT([true,255]);
1656
- host{gcs.informSelecteurOnMenuChange(255," nappeViolons", true) }
1657
- await count(30, tick.now);
1658
-
1659
- emit nappeViolonsOUT([false,255]);
1660
- host{gcs.informSelecteurOnMenuChange(255," nappeViolons", false) }
1661
- yield;
1662
-
1663
- }
1664
-
1665
- host{
1666
- DAW.cleanQueues();
1667
- gcs.cleanChoiceList(255);
1668
- }
1669
-
1670
- host{
1671
- serveur.broadcast(JSON.stringify({
1672
- type: 'alertInfoScoreON',
1673
- value:'Transposition3-1 tick'
1674
- }));
1675
- }
1676
-
1677
- fork {
1678
-
1679
- M712993 : {
1680
- fork{
1681
- run ${ Piano} () {*};
1682
-
1683
- }par{
1684
- await count(30, tick.now);
1685
- emit stopReservoir();
1686
- break M712993;
1687
- }
1688
- }
1689
-
1690
- }
1691
-
1692
- par {
1693
-
1694
- emit nappeViolonsOUT([true,1]);
1695
- host{gcs.informSelecteurOnMenuChange(1," nappeViolons", true) }
1696
- await count(30, tick.now);
1697
-
1698
- emit nappeViolonsOUT([false,1]);
1699
- host{gcs.informSelecteurOnMenuChange(1," nappeViolons", false) }
1700
- yield;
1701
-
1702
- }
1703
-
1704
- par {
1705
-
1706
- abort{
1707
-
1708
- fork {
1709
-
1710
- run ${ TransPianoEtNappe3} () {*};
1711
-
1712
- }
1713
-
1714
- par {
1715
-
1716
- signal inverseTempo;
1717
- host {console.log("-- Start move tempo")}
1718
- abort {
1719
- loop{
1720
- fork {
1721
- every count( 8, tick.now) {
1722
- emit inverseTempo();
1723
- }
1724
- }par{
1725
- loop{
1726
- abort{
1727
- every count(1, tick.now) {
1728
- host{
1729
- tempoGlobal += 5;
1730
- setTempo(tempoGlobal, param);
1731
- }
1732
- }
1733
- } when (inverseTempo.now);
1734
- abort {
1735
- every count(1, tick.now) {
1736
- host{
1737
- tempoGlobal -= 5;
1738
- setTempo(tempoGlobal, param);
1739
- }
1740
- }
1741
- } when (inverseTempo.now);
1742
- }
1743
- }
1744
- }
1745
- } when immediate(stopMoveTempo.now);
1746
- host {console.log("-- Stop move tempo")}
1747
-
1748
- }
1749
-
1750
- } when count(30, tick.now);
1751
-
1752
- }
1753
-
1754
- host{
1755
- DAW.cleanQueues();
1756
- gcs.cleanChoiceList(255);
1757
- }
1758
-
1759
- host{
1760
- serveur.broadcast(JSON.stringify({
1761
- type: 'alertInfoScoreON',
1762
- value:'Transposition2-2 ticks'
1763
- }));
1764
- }
1765
-
1766
- fork {
1767
-
1768
- M591004 : {
1769
- fork{
1770
- run ${ Piano} () {*};
1771
-
1772
- }par{
1773
- await count(30, tick.now);
1774
- emit stopReservoir();
1775
- break M591004;
1776
- }
1777
- }
1778
-
1779
- }
1780
-
1781
- par {
1782
-
1783
- emit nappeViolonsOUT([true,1]);
1784
- host{gcs.informSelecteurOnMenuChange(1," nappeViolons", true) }
1785
- await count(30, tick.now);
1786
-
1787
- emit nappeViolonsOUT([false,1]);
1788
- host{gcs.informSelecteurOnMenuChange(1," nappeViolons", false) }
1789
- yield;
1790
-
1791
- }
1792
-
1793
- par {
1794
-
1795
- abort{
1796
-
1797
- fork {
1798
-
1799
- run ${ TransPianoEtNappe2} () {*};
1800
-
1801
- }
1802
-
1803
- par {
1804
-
1805
- signal inverseTempo;
1806
- host {console.log("-- Start move tempo")}
1807
- abort {
1808
- loop{
1809
- fork {
1810
- every count( 8, tick.now) {
1811
- emit inverseTempo();
1812
- }
1813
- }par{
1814
- loop{
1815
- abort{
1816
- every count(1, tick.now) {
1817
- host{
1818
- tempoGlobal += 5;
1819
- setTempo(tempoGlobal, param);
1820
- }
1821
- }
1822
- } when (inverseTempo.now);
1823
- abort {
1824
- every count(1, tick.now) {
1825
- host{
1826
- tempoGlobal -= 5;
1827
- setTempo(tempoGlobal, param);
1828
- }
1829
- }
1830
- } when (inverseTempo.now);
1831
- }
1832
- }
1833
- }
1834
- } when immediate(stopMoveTempo.now);
1835
- host {console.log("-- Stop move tempo")}
1836
-
1837
- }
1838
-
1839
- } when count(30, tick.now);
1840
-
1841
- }
1842
-
1843
- emit nappeViolonsOUT([false,1]);
1844
- host{gcs.informSelecteurOnMenuChange(1," nappeViolons", false) }
1845
-
1846
- host{
1847
- DAW.cleanQueue(1);
1848
- }
1849
-
1850
- host{
1851
- DAW.cleanQueue(2);
1852
- }
1853
-
1854
- host{
1855
- DAW.cleanQueue(3);
1856
- }
1857
-
1858
- }
1859
-
1860
- host{setTempo(70, param);}
1861
-
1862
238
  host{
1863
239
  serveur.broadcast(JSON.stringify({
1864
- type: 'alertInfoScoreOFF'
240
+ type: 'addSceneScore',
241
+ value:1
1865
242
  }));
1866
243
  }
1867
-
1868
- host{
1869
- DAW.cleanQueue(5);
1870
- }
244
+ yield;
1871
245
 
1872
246
  host{
1873
247
  serveur.broadcast(JSON.stringify({
1874
- type: 'alertInfoScoreON',
1875
- value:'Clarinette (Saxo)'
248
+ type: 'listeDesTypes',
249
+ text:'0,1,2,3,4,5,6,7,8,9'
1876
250
  }));
1877
251
  }
1878
252
 
1879
- emit StartTransSaxo(0);
1880
-
1881
- fork {
1882
-
1883
- M396667 : {
1884
- fork{
1885
- run ${ Saxo} () {*};
1886
-
1887
- }par{
1888
- await count(50, tick.now);
1889
- emit stopReservoir();
1890
- break M396667;
1891
- }
1892
- }
1893
-
1894
- }
1895
-
1896
- par {
1897
-
1898
- abort{
1899
-
1900
- run ${ TransSaxo} () {*};
1901
-
1902
- } when count(50, tick.now);
1903
-
1904
- }
1905
-
1906
253
  host{
1907
- DAW.cleanQueue(2);
254
+ gcs.setpatternListLength([10,255]);
1908
255
  }
1909
256
 
1910
- host{
1911
- serveur.broadcast(JSON.stringify({
1912
- type: 'alertInfoScoreON',
1913
- value:'Brass Percu'
1914
- }));
1915
- }
257
+ host {console.log('EtudeSkiniHarmonie5');}
1916
258
 
1917
259
  fork {
1918
- run ${ Brass} () {*};
1919
- }
1920
- par{
1921
- run ${ Percu} () {*};
1922
- }
1923
260
 
1924
- host{
1925
- DAW.cleanQueue(5);
1926
- }
1927
-
1928
- host{
1929
- serveur.broadcast(JSON.stringify({
1930
- type: 'alertInfoScoreON',
1931
- value:'Flute'
1932
- }));
1933
- }
1934
-
1935
- fork {
1936
-
1937
- M62248 : {
1938
- fork{
1939
- run ${ Flute} () {*};
1940
-
1941
- }par{
1942
- await count(40, tick.now);
1943
- emit stopReservoir();
1944
- break M62248;
1945
- }
1946
- }
261
+ emit PianoCOUT([true,255]);
262
+ host{gcs.informSelecteurOnMenuChange(255," PianoC", true) }
263
+ emit PianoEbOUT([true,255]);
264
+ host{gcs.informSelecteurOnMenuChange(255," PianoEb", true) }
265
+ emit PianoFminOUT([true,255]);
266
+ host{gcs.informSelecteurOnMenuChange(255," PianoFmin", true) }
267
+ await count(200, tick.now);
268
+
269
+ emit PianoCOUT([false,255]);
270
+ host{gcs.informSelecteurOnMenuChange(255," PianoC", false) }
271
+ emit PianoEbOUT([false,255]);
272
+ host{gcs.informSelecteurOnMenuChange(255," PianoEb", false) }
273
+ emit PianoFminOUT([false,255]);
274
+ host{gcs.informSelecteurOnMenuChange(255," PianoFmin", false) }
275
+ yield;
1947
276
 
1948
277
  }
1949
278
 
1950
279
  par {
1951
280
 
1952
- abort{
1953
-
1954
- signal inverseTempo;
1955
- host {console.log("-- Start move tempo")}
1956
- abort {
1957
- loop{
1958
- fork {
1959
- every count( 5, tick.now) {
1960
- emit inverseTempo();
1961
- }
1962
- }par{
1963
- loop{
1964
- abort{
1965
- every count(1, tick.now) {
1966
- host{
1967
- tempoGlobal += 2;
1968
- setTempo(tempoGlobal, param);
1969
- }
1970
- }
1971
- } when (inverseTempo.now);
1972
- abort {
1973
- every count(1, tick.now) {
1974
- host{
1975
- tempoGlobal -= 2;
1976
- setTempo(tempoGlobal, param);
1977
- }
1978
- }
1979
- } when (inverseTempo.now);
1980
- }
1981
- }
1982
- }
1983
- } when immediate(stopMoveTempo.now);
1984
- host {console.log("-- Stop move tempo")}
1985
-
1986
- } when count(40, tick.now);
281
+ fork {
282
+ run ${ FluteC} () {*};
283
+ }
284
+ par{
285
+ run ${ FluteEb} () {*};
286
+ }
287
+ par{
288
+ run ${ FluteFmin} () {*};
289
+ }
1987
290
 
1988
291
  }
1989
292
 
1990
- par {
1991
-
1992
- emit MassiveOUT([true,255]);
1993
- host{gcs.informSelecteurOnMenuChange(255," Massive", true) }
1994
- await count(10, tick.now);
1995
-
1996
- emit MassiveOUT([false,255]);
1997
- host{gcs.informSelecteurOnMenuChange(255," Massive", false) }
1998
- yield;
1999
-
293
+ host{
294
+ DAW.cleanQueues();
295
+ gcs.cleanChoiceList(255);
2000
296
  }
2001
297
 
2002
- host { DAW.putPatternInQueue('Percu4');}
2003
-
2004
298
  host{
2005
299
  serveur.broadcast(JSON.stringify({
2006
300
  type: 'alertInfoScoreON',
2007
- value:'FIN'
301
+ value:'Fin EtudeSkiniHarmonie5'
2008
302
  }));
2009
303
  }
2010
304
 
2011
- host{
2012
- DAW.cleanQueues();
2013
- gcs.cleanChoiceList(255);
2014
- }
2015
-
2016
305
  }
2017
306
  } when (halt.now);
2018
307
  }