nodeskini 1.0.5 → 1.0.6

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.
Files changed (164) hide show
  1. package/client/clientListe/clientListe.js +11 -0
  2. package/client/clientListe/clientListebundle.js +1755 -1909
  3. package/client/score/parto1.js +4 -1
  4. package/client/score/parto1bundle.js +45 -23
  5. package/doc/Doc Skini Node english.pdf +0 -0
  6. package/doc/Mode d'emploi Skini Node.pdf +0 -0
  7. package/doc/Tuto Skini.pdf +0 -0
  8. package/doc/quickstart.pdf +0 -0
  9. package/myReact/orchestrationHH.hh.js +27 -12
  10. package/myReact/orchestrationHH.mjs +170 -170
  11. package/myReact/orchestrationHH.mjs.map +1 -1
  12. package/package.json +11 -8
  13. package/pieces/tutos/demoAbleton.csv +21 -0
  14. package/pieces/tutos/demoAbleton.js +100 -0
  15. package/pieces/tutos/demoAbleton.xml +180 -0
  16. package/pieces/tutos/demoHH.js +99 -0
  17. package/pieces/tutos/demoHH.xml +184 -0
  18. package/pieces/tutos/demoHHwait.js +100 -0
  19. package/pieces/tutos/demoHHwait.xml +175 -0
  20. package/pieces/tutos/tuto.csv +10 -0
  21. package/pieces/tutos/tuto.csv.good +1 -0
  22. package/pieces/tutos/tuto1.js +105 -0
  23. package/pieces/tutos/tuto1.xml +147 -0
  24. package/pieces/tutos/tuto10.back.js +106 -0
  25. package/pieces/tutos/tuto10.js +107 -0
  26. package/pieces/tutos/tuto10.xml +199 -0
  27. package/pieces/tutos/tuto11.js +111 -0
  28. package/pieces/tutos/tuto11.xml +124 -0
  29. package/pieces/tutos/tuto12.js +91 -0
  30. package/pieces/tutos/tuto12.xml +258 -0
  31. package/pieces/tutos/tuto2.back.js +106 -0
  32. package/pieces/tutos/tuto2.js +95 -0
  33. package/pieces/tutos/tuto2.xml +94 -0
  34. package/pieces/tutos/tuto3-2.js +105 -0
  35. package/pieces/tutos/tuto3-2.xml +96 -0
  36. package/pieces/tutos/tuto3.js +97 -0
  37. package/pieces/tutos/tuto3.xml +49 -0
  38. package/pieces/tutos/tuto4.js +107 -0
  39. package/pieces/tutos/tuto4.xml +106 -0
  40. package/pieces/tutos/tuto5.js +109 -0
  41. package/pieces/tutos/tuto5.xml +42 -0
  42. package/pieces/tutos/tuto6.js +105 -0
  43. package/pieces/tutos/tuto6.xml +26 -0
  44. package/pieces/tutos/tuto7.js +107 -0
  45. package/pieces/tutos/tuto7.xml +65 -0
  46. package/pieces/tutos/tuto8.js +105 -0
  47. package/pieces/tutos/tuto8.xml +76 -0
  48. package/pieces/tutos/tuto9.js +107 -0
  49. package/pieces/tutos/tuto9.xml +90 -0
  50. package/pieces/tutos/tutoAwait.js +111 -0
  51. package/pieces/tutos/tutoAwait.xml +171 -0
  52. package/pieces/tutos/tutoDoubleEmission.js +93 -0
  53. package/pieces/tutos/tutoDoubleEmission.xml +65 -0
  54. package/pieces/tutos/tutoESP32.js +104 -0
  55. package/pieces/tutos/tutoESP32.xml +246 -0
  56. package/pieces/tutos/tutoGame.js +126 -0
  57. package/pieces/tutos/tutoGame.xml +109 -0
  58. package/pieces/tutos/tutoGroups1.js +111 -0
  59. package/pieces/tutos/tutoGroups1.xml +137 -0
  60. package/pieces/tutos/tutoGroups2.js +97 -0
  61. package/pieces/tutos/tutoGroups2.xml +103 -0
  62. package/pieces/tutos/tutoGroups3.js +111 -0
  63. package/pieces/tutos/tutoGroups3.xml +128 -0
  64. package/pieces/tutos/tutoGroups4.js +111 -0
  65. package/pieces/tutos/tutoGroups4.xml +84 -0
  66. package/pieces/tutos/tutoIZ.js +95 -0
  67. package/pieces/tutos/tutoIZ.xml +135 -0
  68. package/pieces/tutos/tutoIf.js +111 -0
  69. package/pieces/tutos/tutoIf.xml +126 -0
  70. package/pieces/tutos/tutoMidi.js +126 -0
  71. package/pieces/tutos/tutoMidi.xml +62 -0
  72. package/pieces/tutos/tutoOS.js +121 -0
  73. package/pieces/tutos/tutoOSC.js +109 -0
  74. package/pieces/tutos/tutoOSC.xml +223 -0
  75. package/pieces/tutos/tutoOSCJonathan.js +94 -0
  76. package/pieces/tutos/tutoOSCJonathan.xml +312 -0
  77. package/pieces/tutos/tutoPatternInGroup.js +109 -0
  78. package/pieces/tutos/tutoPatternInGroup.xml +116 -0
  79. package/pieces/tutos/tutoRandomBlock.js +129 -0
  80. package/pieces/tutos/tutoRandomBlock.xml +194 -0
  81. package/pieces/tutos/tutoSuspend.js +107 -0
  82. package/pieces/tutos/tutoSuspend.xml +139 -0
  83. package/pieces/tutos/tutoSustain.js +107 -0
  84. package/pieces/tutos/tutoSustain.xml +109 -0
  85. package/pieces/tutos/tutoTank.csv +9 -0
  86. package/pieces/tutos/tutoTank.js +100 -0
  87. package/pieces/tutos/tutoTank.xml +326 -0
  88. package/pieces/tutos/tutoTestAll.csv +11 -0
  89. package/pieces/tutos/tutoTestAll.js +101 -0
  90. package/pieces/tutos/tutoTestAll.xml +859 -0
  91. package/serveur/skiniParametres.js +104 -11
  92. package/blocklySkini/archive/blocklyControleur.js +0 -87
  93. package/blocklySkini/archive/blocklySkini.js +0 -84
  94. package/blocklySkini/archive/blocklyhop.js +0 -75
  95. package/blocklySkini/archive/clientControleurBlocly.js +0 -170
  96. package/blocklySkini/archive/index.html +0 -76
  97. package/blocklySkini/archive/testHHsuspend.txt +0 -89
  98. package/blocklySkini/archive/testHHtrap.txt +0 -262
  99. package/blocklySkini/archive/testOrchestration.txt +0 -177
  100. package/blocklySkini/archive/testOrchestration.xml +0 -447
  101. package/blocklySkini/archive/testOrchestration2.xml +0 -456
  102. package/blocklySkini/scripts/hiphop_blocks.old.js +0 -3010
  103. package/blocklySkini/scripts/hiphop_blocks11-2025.js +0 -6104
  104. package/myReact/archive/Nodeemitvaluedlocal1.hh.js +0 -52
  105. package/myReact/archive/abort-parNode.js +0 -79
  106. package/myReact/archive/abroNode.js +0 -169
  107. package/myReact/archive/abroNode2.js +0 -80
  108. package/myReact/archive/atom.compile.hh.js +0 -52
  109. package/myReact/archive/await-countNode.js +0 -67
  110. package/myReact/archive/await-nowvalNode.js +0 -44
  111. package/myReact/archive/callHH.js +0 -96
  112. package/myReact/archive/emit-if2.hh.compiled.js +0 -113
  113. package/myReact/archive/every1Node.js +0 -35
  114. package/myReact/archive/if-runNode.js +0 -74
  115. package/myReact/archive/if1Node.js +0 -43
  116. package/myReact/archive/makeawait.js +0 -0
  117. package/myReact/archive/myReact.old.js +0 -684
  118. package/myReact/archive/orchestration.js +0 -281
  119. package/myReact/archive/orchestration1.js +0 -132
  120. package/myReact/archive/orchestration1.xml +0 -465
  121. package/myReact/archive/orchestration2.js +0 -161
  122. package/myReact/archive/orchestrationHH.mano.js +0 -280
  123. package/myReact/archive/orchestrationHHTest.js +0 -428
  124. package/myReact/archive/orchestrationHHTest.xml +0 -234
  125. package/myReact/archive/orchestrationHHTestRun.js +0 -104
  126. package/myReact/archive/orchestrationHHTestRun.xml +0 -34
  127. package/myReact/archive/orchestrationTest0.js +0 -178
  128. package/myReact/archive/orchestrationTest1.js +0 -181
  129. package/myReact/archive/orchestrationTest2.js +0 -281
  130. package/myReact/archive/run3pointsNode.js +0 -59
  131. package/myReact/archive/runNode.js +0 -123
  132. package/myReact/archive/runNode2.js +0 -91
  133. package/myReact/archive/testAwait1.js +0 -141
  134. package/myReact/archive/testAwait1.xml +0 -86
  135. package/myReact/archive/testEvery1.js +0 -122
  136. package/myReact/archive/testEvery1.xml +0 -79
  137. package/myReact/archive/testHH1.js +0 -135
  138. package/myReact/archive/testHH1.xml +0 -86
  139. package/myReact/archive/testHH1revu.js +0 -104
  140. package/myReact/archive/testHH2.js +0 -122
  141. package/myReact/archive/testHH2.xml +0 -79
  142. package/myReact/archive/testHH3.js +0 -130
  143. package/myReact/archive/testHH3.xml +0 -86
  144. package/myReact/archive/testHHabort.js +0 -121
  145. package/myReact/archive/testHHabort.xml +0 -83
  146. package/myReact/archive/testMakeawait.js +0 -202
  147. package/myReact/archive/testRun1.js +0 -168
  148. package/myReact/archive/testRun1.xml +0 -142
  149. package/myReact/archive/titi.js +0 -28
  150. package/myReact/archive/titi.xml +0 -110
  151. package/myReact/archive/toto.js +0 -73
  152. package/myReact/archive/toto.xml +0 -198
  153. package/myReact/archive/trap-await-parallelNode.js +0 -123
  154. package/myReact/inutiles/hiver2022.xml +0 -804
  155. package/myReact/inutiles/hopeNode.xml +0 -459
  156. package/myReact/inutiles/mars2022.xml +0 -871
  157. package/myReact/inutiles/mystique1.xml +0 -318
  158. package/myReact/inutiles/mystiqueOSC.xml +0 -277
  159. package/myReact/inutiles/opus5Node.xml +0 -1271
  160. package/myReact/inutiles/opus5NodeLinux.xml +0 -1241
  161. package/myReact/inutiles/orchestrationHH.xml +0 -541
  162. package/myReact/inutiles/orchestrationHH2.xml +0 -547
  163. package/myReact/inutiles/testHH.xml +0 -95
  164. package/myReact/inutiles/trouveLaPercuTenor.xml +0 -349
@@ -1,281 +0,0 @@
1
- 'use strict'
2
- // Programme en myReact
3
-
4
- var violon1, violon2, violon3, tick, stopTankViolon, groupePercuON, stopTankPiano, groupeTrompetteON, groupeTrompetteOFF, groupePercuOFF, tankViolon, tankPiano, piano1, piano2, piano3;
5
-
6
- var mr = require("./myReact.js");
7
- var gcs = require("../serveur/autocontroleur/groupeClientsSons.js");
8
-
9
- var debug1 = true;
10
- var debug = false;
11
-
12
- // A mettre dans Blockly pour des retours de l'orchestration
13
- // mais il est mieux de passer par gcs ou atom
14
- var skini;
15
- function setSkini(skiniMaster){
16
- skini = skiniMaster;
17
- }
18
- exports.setSkini = setSkini;
19
-
20
- // A mettre dans Blockly pour les signaux locaux
21
- mr.createSignal("tick", 0);
22
- mr.createSignal("startTimer", 0);
23
- mr.createSignal("stopTimer", 0);
24
-
25
- // On utilise un loop pour que timer reste actif
26
- // le run au sens HH n'existe pas, quand on appelle
27
- // un module c'est toujours le même et pas un nouvel objet
28
- // Le module ici n'est qu'une facilité de présentation du code.
29
- var timer = [
30
- mr._loop([
31
- mr._seq([
32
- mr._await("startTimer", 1),
33
- mr._atom( ()=> { gcs.alertInfoScoreON('Il reste 10s pour jouer'); } ),
34
- mr._atom( ()=> {console.log('Début timer');} ),
35
- mr._await("tick", 2),
36
- mr._atom( ()=> { gcs.alertInfoScoreON('8s pour jouer'); } ),
37
- mr._await("tick", 2),
38
- mr._atom( ()=> { gcs.alertInfoScoreON('6s pour jouer'); } ),
39
- mr._await("tick", 2),
40
- mr._atom( ()=> { gcs.alertInfoScoreON('4s pour jouer'); } ),
41
- mr._await("tick", 2),
42
- mr._atom( ()=> { gcs.alertInfoScoreON('2s pour jouer'); } ),
43
- mr._await("tick", 2),
44
- mr._atom( ()=> { gcs.alertInfoScoreOFF(); } ),
45
- mr._emit("stopTimer", 0),
46
- ]),
47
- ]),
48
- ];
49
-
50
- var timeCounter = 0;
51
-
52
- var instructions = [
53
- mr._abort("stop",1,
54
- [
55
- mr._par(
56
- [
57
- mr._every("tick", 1,
58
- [
59
- mr._atom( ()=> {
60
- timeCounter++;
61
- gcs.setTickOnControler(timeCounter);
62
- }
63
- ),
64
- ]
65
- ),
66
- mr._run(timer),
67
- mr._seq(
68
- [
69
- mr._await("start", 1),
70
-
71
- mr._atom( ()=> { gcs.setTimerDivision(2); } ),
72
- mr._atom( ()=> { gcs.setpatternListLength([5, 255]); } ),
73
-
74
- mr._atom( ()=> { gcs.alertInfoScoreON('Duel trouve la percu'); } ),
75
- mr._await("tick", 4),
76
-
77
- mr._atom( ()=> { gcs.alertInfoScoreOFF(); } ),
78
- mr._atom( ()=> { gcs.setComputeScorePolicy(2); } ),
79
-
80
- // djembé ---------------------------------------
81
- mr._atom( ()=> { gcs.setComputeScoreClass(5); } ),
82
-
83
- mr._emit("djembeOUT", [true, 2]),
84
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(2,"djembeOUT",true);}),
85
-
86
- // Séquence djembé pour groupe 0
87
- mr._atom( ()=> { gcs.alertInfoScoreON(' Djembe pour groupe Skini 0 '); } ),
88
-
89
- mr._emit("groupe5OUT", [true, 0]),
90
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(0,"groupe5OUT",true);}),
91
-
92
- mr._await("groupe5IN", 1),
93
- mr._atom( ()=> { console.log("groupe5IN djembé"); } ),
94
-
95
- /* mr._emit("startTimer", 0),
96
- mr._abort("stopTimer", 1 ,
97
- [
98
- mr._loop(
99
- [
100
- mr._await("groupe5IN", 1),
101
- mr._atom( ()=> { console.log("groupe5IN"); } ),
102
- ]
103
- ),
104
- ]
105
- ),*/
106
-
107
- mr._emit("startTimer", 0),
108
- mr._await("stopTimer", 1),
109
-
110
- mr._emit("groupe5OUT", [false, 0]),
111
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(0,"groupe5OUT",false);}),
112
-
113
- mr._atom( ()=> { gcs.cleanChoiceList(0); } ),
114
-
115
- // Séquence djembé pour groupe 1
116
- mr._atom( ()=> { gcs.alertInfoScoreON(' Djembe pour groupe Skini 1 '); } ),
117
-
118
- mr._emit("groupe6OUT", [true, 1]),
119
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(1,"groupe6OUT",true);}),
120
-
121
- mr._await("groupe6IN", 1),
122
- mr._atom( ()=> { console.log("groupe6IN djembé"); } ),
123
-
124
- /* mr._emit("startTimer", 0),
125
- mr._abort("stopTimer", 1 ,
126
- [
127
- mr._loop(
128
- [
129
- mr._await("groupe5IN", 1),
130
- mr._atom( ()=> { console.log("groupe5IN"); } ),
131
- ]
132
- ),
133
- ]
134
- ),
135
- */
136
- mr._emit("startTimer", 0),
137
- mr._await("stopTimer", 1),
138
-
139
- mr._emit("groupe6OUT", [false, 1]),
140
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(1,"groupe6OUT",false);}),
141
-
142
- mr._atom( ()=> { gcs.cleanChoiceList(1); } ),
143
-
144
- // Fin djembé
145
- mr._emit("djembeOUT", [false, 2]),
146
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(2,"djembeOUT",false);}),
147
- mr._atom( ()=> { gcs.cleanQueues(); } ),
148
-
149
- // derwish -------------------------------------------
150
- mr._atom( ()=> { gcs.setComputeScoreClass(1); } ),
151
-
152
- mr._emit("derwishOUT", [true, 2]),
153
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(2,"derwishOUT",true);}),
154
-
155
- // Séquence derwish pour groupe 0
156
- mr._atom( ()=> { gcs.alertInfoScoreON(' derwish pour groupe Skini 0 '); } ),
157
-
158
- mr._emit("groupe1OUT", [true, 0]),
159
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(0,"groupe1OUT",true);}),
160
-
161
- mr._await("groupe1IN", 1),
162
- mr._atom( ()=> { console.log("groupe1IN derwish"); } ),
163
-
164
- mr._emit("startTimer", 0),
165
- mr._await("stopTimer", 1),
166
-
167
- mr._emit("groupe1OUT", [false, 0]),
168
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(0,"groupe1OUT",false);}),
169
-
170
- mr._atom( ()=> { gcs.cleanChoiceList(0); } ),
171
-
172
- // Séquence derwish pour groupe 1
173
- mr._atom( ()=> { gcs.alertInfoScoreON(' derwish pour groupe Skini 1 '); } ),
174
-
175
- mr._emit("groupe2OUT", [true, 1]),
176
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(1,"groupe1OUT",true);}),
177
-
178
- mr._await("groupe2IN", 1),
179
- mr._atom( ()=> { console.log("groupe1IN derwish 2"); } ),
180
-
181
- mr._emit("startTimer", 0),
182
- mr._await("stopTimer", 1),
183
-
184
- mr._emit("groupe2OUT", [false, 1]),
185
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(1,"groupe1OUT",false);}),
186
-
187
- mr._atom( ()=> { gcs.cleanChoiceList(1); } ),
188
-
189
- // Fin derwish
190
- mr._emit("derwishOUT", [false, 2]),
191
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(2,"derwishOUT",false);}),
192
- mr._atom( ()=> { gcs.cleanQueues(); } ),
193
-
194
- // Latino -------------------------------------------
195
- mr._atom( ()=> { gcs.setComputeScoreClass(7); } ),
196
-
197
- mr._emit("pianoOUT", [true, 2]),
198
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(2,"pianoOUT",true);}),
199
-
200
- // Séquence derwish pour groupe 0
201
- mr._atom( ()=> { gcs.alertInfoScoreON(' Latino pour groupe Skini 0 '); } ),
202
-
203
- mr._emit("groupe7OUT", [true, 0]),
204
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(0,"groupe7OUT",true);}),
205
-
206
- mr._await("groupe7IN", 1),
207
- mr._atom( ()=> { console.log("groupe7IN latino"); } ),
208
-
209
- mr._emit("startTimer", 0),
210
- mr._await("stopTimer", 1),
211
-
212
- mr._emit("groupe7OUT", [false, 0]),
213
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(0,"groupe7OUT",false);}),
214
-
215
- mr._atom( ()=> { gcs.cleanChoiceList(0); } ),
216
-
217
- // Séquence Latino pour groupe 1
218
- mr._atom( ()=> { gcs.alertInfoScoreON(' Latino pour groupe Skini 1 '); } ),
219
-
220
- mr._emit("groupe3OUT", [true, 1]),
221
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(1,"groupe7OUT",true);}),
222
-
223
- mr._await("groupe3IN", 1),
224
- mr._atom( ()=> { console.log("groupe7IN latino 2"); } ),
225
-
226
- mr._emit("startTimer", 0),
227
- mr._await("stopTimer", 1),
228
-
229
- mr._emit("groupe3OUT", [false, 1]),
230
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(1,"groupe7OUT",false);}),
231
-
232
- mr._atom( ()=> { gcs.cleanChoiceList(1); } ),
233
-
234
- // Fin Latino
235
- mr._emit("pianoOUT", [false, 2]),
236
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(2,"pianoOUT",false);}),
237
- mr._atom( ()=> { gcs.cleanQueues(); } ),
238
-
239
- // Pour finir ----------------------------------------------------------
240
- mr._await("tick", 20),
241
- mr._atom( ()=> { gcs.alertInfoScoreON('Jeu terminé'); } ),
242
- ]
243
- ),
244
- ],
245
- ),
246
- ]
247
- ),
248
- mr._atom( ()=> {console.log('Orchestration Stop');} ),
249
- mr._atom( ()=> { gcs.resetMatrice(); } ),
250
- mr._atom( ()=> { gcs.cleanQueues(); } ),
251
-
252
- ];
253
-
254
- //mr.addEventListener("startTimer", function(val) {console.log("*** emit startTimer")});
255
-
256
- // A mettre dans Blockly
257
- var prog = mr.createModule(instructions);
258
-
259
- //mr.printProgram(prog, false);
260
-
261
- // A mettre dans Blockly
262
- function runProg(){
263
- // mr.printProgram(prog, false);
264
- mr.runProg(prog);
265
- //skini.test1("**** depuis orchestration");
266
- }
267
- exports.runProg = runProg;
268
-
269
- // A mettre dans Blockly
270
- function createListener(signal, action){
271
- if(debug) console.log("orchestration: createListener: ", signal);
272
- mr.createSignal(signal, 0);
273
- mr.addEventListener(signal, action);
274
- }
275
- exports.createListener = createListener;
276
-
277
- // A mettre dans Blockly
278
- function activateSignal(signal, val){
279
- mr.activateSignal(signal, val);
280
- }
281
- exports.activateSignal = activateSignal;
@@ -1,132 +0,0 @@
1
- var violon1, violon2, violon3, tick, stopTankViolon, groupePercuON, stopTankPiano, groupeTrompetteON, groupeTrompetteOFF, groupePercuOFF, tankViolon, tankPiano, piano1, piano2, piano3;
2
-
3
-
4
-
5
- var mr = require("./myReact.min.js");
6
- mr.createSignal("violon1");
7
- mr.createSignal("violon2");
8
- mr.createSignal("violon3");
9
- mr.createSignal("stopTankViolon");
10
- mr.createSignal("stopTankPiano");
11
- mr.createSignal("groupeTrompetteON");
12
- mr.createSignal("groupeTrompetteOFF");
13
- mr.createSignal("groupePercuON");
14
- mr.createSignal("groupePercuOFF");
15
-
16
- // Debut de module
17
- tankViolon = [
18
-
19
- // Debut de abort
20
- mr._abort("stopTankViolon",1,
21
- [
22
- mr._atom( ()=> {console.log('Attend violon1');} ),
23
- mr._await("violon1", 1),
24
-
25
- mr._atom( ()=> {console.log('Attend violon2');} ),
26
- mr._await("violon2", 1),
27
-
28
- mr._atom( ()=> {console.log('Attend violon3');} ),
29
- mr._await("violon3", 1),
30
- ]
31
- ),
32
-
33
- ];
34
-
35
- // Debut de module
36
- tankPiano = [
37
-
38
- // Debut de abort
39
- mr._abort("stopTankPiano",1,
40
- [
41
- mr._atom( ()=> {console.log('Attend piano1');} ),
42
- mr._await("piano1", 1),
43
-
44
- mr._atom( ()=> {console.log('Attend piano2');} ),
45
- mr._await("piano2", 1),
46
-
47
- mr._atom( ()=> {console.log('Attend piano3');} ),
48
- mr._await("piano3", 1),
49
- ]
50
- ),
51
-
52
- ];
53
-
54
- var instructions = [
55
- // Debut de par
56
- mr._par(
57
- [
58
- // Debut de seq
59
- mr._seq(
60
- [
61
- mr._atom( ()=> {console.log('Début orchestration');} ),
62
-
63
- mr._emit("groupePercuON",0),mr._await("tick", 5),
64
-
65
- mr._atom( ()=> {console.log('Après 5 ticks');} ),
66
-
67
- // Debut de par
68
- mr._par(
69
- [
70
- // Debut de par
71
- mr._par(
72
- [
73
- // Debut de run module
74
- mr._run(tankViolon),
75
-
76
- // Debut de seq
77
- mr._seq(
78
- [ mr._await("tick", 5),
79
-
80
- mr._atom( ()=> {console.log('Après 5 ticks violon');} ),
81
-
82
- mr._emit("stopTankViolon",0),]
83
- ),
84
- ]
85
- ),
86
-
87
- // Debut de par
88
- mr._par(
89
- [
90
- // Debut de run module
91
- mr._run(tankPiano),
92
-
93
- // Debut de seq
94
- mr._seq(
95
- [ mr._await("tick", 5),
96
-
97
- mr._atom( ()=> {console.log('Après 5 ticks piano');} ),
98
-
99
- mr._emit("stopTankPiano",0),]
100
- ),
101
- ]
102
- ),
103
- ]
104
- ),
105
-
106
- mr._emit("groupePercuOFF",0),
107
- mr._emit("groupeTrompetteON",0),mr._await("tick", 5),
108
-
109
- mr._emit("groupeTrompetteOFF",0),
110
- mr._atom( ()=> {console.log('Fin orchestration');} ),
111
- ]
112
- ),
113
-
114
- // Debut de every
115
- mr._every("tick",1,
116
- [
117
- mr._atom( ()=> {console.log('tick');} ),
118
- ]
119
- ),
120
- ]
121
- ),
122
- ];
123
-
124
- var prog = mr.createModule(instructions);
125
-
126
- console.log(" 1 ----------------");
127
- mr.runProg(prog);
128
-
129
- console.log(" 2 ----------------");
130
- mr.runProg(prog);
131
-
132
- mr.printProgram(prog, false);