nodeskini 1.0.3 → 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 (182) hide show
  1. package/blocklySkini/scripts/hiphop_blocks.js +3991 -6104
  2. package/blocklySkini/scripts/main2.js +4 -4
  3. package/client/clientListe/clientListe.js +11 -0
  4. package/client/clientListe/clientListebundle.js +1755 -1909
  5. package/client/configurateur/configReact.js +1 -1
  6. package/client/configurateur/configReactbundle.js +16 -10
  7. package/client/configurateur/src/configReact.js +1 -1
  8. package/client/parametrage/paramReact.js +1 -1
  9. package/client/parametrage/paramReactbundle.js +6 -5
  10. package/client/parametrage/src/paramReact.js +2 -2
  11. package/client/score/parto1.js +4 -1
  12. package/client/score/parto1bundle.js +45 -23
  13. package/client/simulateurListe/simulateurFork.mjs +1 -1
  14. package/client/simulateurListe/simulateurListe.js +3 -3
  15. package/doc/Doc Skini Node english.pdf +0 -0
  16. package/doc/Mode d'emploi Skini Node.pdf +0 -0
  17. package/doc/Tuto Skini.pdf +0 -0
  18. package/doc/quickstart.pdf +0 -0
  19. package/myReact/orchestrationHH.hh.js +2024 -0
  20. package/myReact/orchestrationHH.mjs +262 -420
  21. package/myReact/orchestrationHH.mjs.map +1 -1
  22. package/package.json +19 -11
  23. package/pieces/tutos/demoAbleton.csv +21 -0
  24. package/pieces/tutos/demoAbleton.js +100 -0
  25. package/pieces/tutos/demoAbleton.xml +180 -0
  26. package/pieces/tutos/demoHH.js +99 -0
  27. package/pieces/tutos/demoHH.xml +184 -0
  28. package/pieces/tutos/demoHHwait.js +100 -0
  29. package/pieces/tutos/demoHHwait.xml +175 -0
  30. package/pieces/tutos/tuto.csv +10 -0
  31. package/pieces/tutos/tuto.csv.good +1 -0
  32. package/pieces/tutos/tuto1.js +105 -0
  33. package/pieces/tutos/tuto1.xml +147 -0
  34. package/pieces/tutos/tuto10.back.js +106 -0
  35. package/pieces/tutos/tuto10.js +107 -0
  36. package/pieces/tutos/tuto10.xml +199 -0
  37. package/pieces/tutos/tuto11.js +111 -0
  38. package/pieces/tutos/tuto11.xml +124 -0
  39. package/pieces/tutos/tuto12.js +91 -0
  40. package/pieces/tutos/tuto12.xml +258 -0
  41. package/pieces/tutos/tuto2.back.js +106 -0
  42. package/pieces/tutos/tuto2.js +95 -0
  43. package/pieces/tutos/tuto2.xml +94 -0
  44. package/pieces/tutos/tuto3-2.js +105 -0
  45. package/pieces/tutos/tuto3-2.xml +96 -0
  46. package/pieces/tutos/tuto3.js +97 -0
  47. package/pieces/tutos/tuto3.xml +49 -0
  48. package/pieces/tutos/tuto4.js +107 -0
  49. package/pieces/tutos/tuto4.xml +106 -0
  50. package/pieces/tutos/tuto5.js +109 -0
  51. package/pieces/tutos/tuto5.xml +42 -0
  52. package/pieces/tutos/tuto6.js +105 -0
  53. package/pieces/tutos/tuto6.xml +26 -0
  54. package/pieces/tutos/tuto7.js +107 -0
  55. package/pieces/tutos/tuto7.xml +65 -0
  56. package/pieces/tutos/tuto8.js +105 -0
  57. package/pieces/tutos/tuto8.xml +76 -0
  58. package/pieces/tutos/tuto9.js +107 -0
  59. package/pieces/tutos/tuto9.xml +90 -0
  60. package/pieces/tutos/tutoAwait.js +111 -0
  61. package/pieces/tutos/tutoAwait.xml +171 -0
  62. package/pieces/tutos/tutoDoubleEmission.js +93 -0
  63. package/pieces/tutos/tutoDoubleEmission.xml +65 -0
  64. package/pieces/tutos/tutoESP32.js +104 -0
  65. package/pieces/tutos/tutoESP32.xml +246 -0
  66. package/pieces/tutos/tutoGame.js +126 -0
  67. package/pieces/tutos/tutoGame.xml +109 -0
  68. package/pieces/tutos/tutoGroups1.js +111 -0
  69. package/pieces/tutos/tutoGroups1.xml +137 -0
  70. package/pieces/tutos/tutoGroups2.js +97 -0
  71. package/pieces/tutos/tutoGroups2.xml +103 -0
  72. package/pieces/tutos/tutoGroups3.js +111 -0
  73. package/pieces/tutos/tutoGroups3.xml +128 -0
  74. package/pieces/tutos/tutoGroups4.js +111 -0
  75. package/pieces/tutos/tutoGroups4.xml +84 -0
  76. package/pieces/tutos/tutoIZ.js +95 -0
  77. package/pieces/tutos/tutoIZ.xml +135 -0
  78. package/pieces/tutos/tutoIf.js +111 -0
  79. package/pieces/tutos/tutoIf.xml +126 -0
  80. package/pieces/tutos/tutoMidi.js +126 -0
  81. package/pieces/tutos/tutoMidi.xml +62 -0
  82. package/pieces/tutos/tutoOS.js +121 -0
  83. package/pieces/tutos/tutoOSC.js +109 -0
  84. package/pieces/tutos/tutoOSC.xml +223 -0
  85. package/pieces/tutos/tutoOSCJonathan.js +94 -0
  86. package/pieces/tutos/tutoOSCJonathan.xml +312 -0
  87. package/pieces/tutos/tutoPatternInGroup.js +109 -0
  88. package/pieces/tutos/tutoPatternInGroup.xml +116 -0
  89. package/pieces/tutos/tutoRandomBlock.js +129 -0
  90. package/pieces/tutos/tutoRandomBlock.xml +194 -0
  91. package/pieces/tutos/tutoSuspend.js +107 -0
  92. package/pieces/tutos/tutoSuspend.xml +139 -0
  93. package/pieces/tutos/tutoSustain.js +107 -0
  94. package/pieces/tutos/tutoSustain.xml +109 -0
  95. package/pieces/tutos/tutoTank.csv +9 -0
  96. package/pieces/tutos/tutoTank.js +100 -0
  97. package/pieces/tutos/tutoTank.xml +326 -0
  98. package/pieces/tutos/tutoTestAll.csv +11 -0
  99. package/pieces/tutos/tutoTestAll.js +101 -0
  100. package/pieces/tutos/tutoTestAll.xml +859 -0
  101. package/serveur/OSCandMidi.mjs +7 -5
  102. package/serveur/controleDAW.mjs +3 -2
  103. package/serveur/defaultSkiniParametres.js +20 -13
  104. package/serveur/groupeClientsSons.mjs +10 -5
  105. package/serveur/ipConfig.json +2 -2
  106. package/serveur/midimix.mjs +13 -13
  107. package/serveur/saveParam.mjs +4 -15
  108. package/serveur/skiniParametres.js +108 -26
  109. package/serveur/utilsHHSkini.hh.js +64 -64
  110. package/serveur/websocketServer.mjs +2090 -2052
  111. package/serveur/workerInterfaceZ.mjs +4 -7
  112. package/blocklySkini/archive/blocklyControleur.js +0 -87
  113. package/blocklySkini/archive/blocklySkini.js +0 -84
  114. package/blocklySkini/archive/blocklyhop.js +0 -75
  115. package/blocklySkini/archive/clientControleurBlocly.js +0 -170
  116. package/blocklySkini/archive/index.html +0 -76
  117. package/blocklySkini/archive/testHHsuspend.txt +0 -89
  118. package/blocklySkini/archive/testHHtrap.txt +0 -262
  119. package/blocklySkini/archive/testOrchestration.txt +0 -177
  120. package/blocklySkini/archive/testOrchestration.xml +0 -447
  121. package/blocklySkini/archive/testOrchestration2.xml +0 -456
  122. package/myReact/archive/Nodeemitvaluedlocal1.hh.js +0 -52
  123. package/myReact/archive/abort-parNode.js +0 -79
  124. package/myReact/archive/abroNode.js +0 -169
  125. package/myReact/archive/abroNode2.js +0 -80
  126. package/myReact/archive/atom.compile.hh.js +0 -51
  127. package/myReact/archive/await-countNode.js +0 -67
  128. package/myReact/archive/await-nowvalNode.js +0 -44
  129. package/myReact/archive/callHH.js +0 -96
  130. package/myReact/archive/emit-if2.hh.compiled.js +0 -113
  131. package/myReact/archive/every1Node.js +0 -35
  132. package/myReact/archive/if-runNode.js +0 -74
  133. package/myReact/archive/if1Node.js +0 -43
  134. package/myReact/archive/makeawait.js +0 -0
  135. package/myReact/archive/myReact.old.js +0 -684
  136. package/myReact/archive/orchestration.js +0 -281
  137. package/myReact/archive/orchestration1.js +0 -132
  138. package/myReact/archive/orchestration1.xml +0 -465
  139. package/myReact/archive/orchestration2.js +0 -161
  140. package/myReact/archive/orchestrationHH.mano.js +0 -280
  141. package/myReact/archive/orchestrationHHTest.js +0 -428
  142. package/myReact/archive/orchestrationHHTest.xml +0 -234
  143. package/myReact/archive/orchestrationHHTestRun.js +0 -104
  144. package/myReact/archive/orchestrationHHTestRun.xml +0 -34
  145. package/myReact/archive/orchestrationTest0.js +0 -178
  146. package/myReact/archive/orchestrationTest1.js +0 -181
  147. package/myReact/archive/orchestrationTest2.js +0 -281
  148. package/myReact/archive/run3pointsNode.js +0 -59
  149. package/myReact/archive/runNode.js +0 -123
  150. package/myReact/archive/runNode2.js +0 -91
  151. package/myReact/archive/testAwait1.js +0 -141
  152. package/myReact/archive/testAwait1.xml +0 -86
  153. package/myReact/archive/testEvery1.js +0 -122
  154. package/myReact/archive/testEvery1.xml +0 -79
  155. package/myReact/archive/testHH1.js +0 -135
  156. package/myReact/archive/testHH1.xml +0 -86
  157. package/myReact/archive/testHH1revu.js +0 -104
  158. package/myReact/archive/testHH2.js +0 -122
  159. package/myReact/archive/testHH2.xml +0 -79
  160. package/myReact/archive/testHH3.js +0 -130
  161. package/myReact/archive/testHH3.xml +0 -86
  162. package/myReact/archive/testHHabort.js +0 -121
  163. package/myReact/archive/testHHabort.xml +0 -83
  164. package/myReact/archive/testMakeawait.js +0 -202
  165. package/myReact/archive/testRun1.js +0 -168
  166. package/myReact/archive/testRun1.xml +0 -142
  167. package/myReact/archive/titi.js +0 -28
  168. package/myReact/archive/titi.xml +0 -110
  169. package/myReact/archive/toto.js +0 -73
  170. package/myReact/archive/toto.xml +0 -198
  171. package/myReact/archive/trap-await-parallelNode.js +0 -123
  172. package/myReact/inutiles/hiver2022.xml +0 -804
  173. package/myReact/inutiles/hopeNode.xml +0 -459
  174. package/myReact/inutiles/mars2022.xml +0 -871
  175. package/myReact/inutiles/mystique1.xml +0 -318
  176. package/myReact/inutiles/mystiqueOSC.xml +0 -277
  177. package/myReact/inutiles/opus5Node.xml +0 -1271
  178. package/myReact/inutiles/opus5NodeLinux.xml +0 -1241
  179. package/myReact/inutiles/orchestrationHH.xml +0 -541
  180. package/myReact/inutiles/orchestrationHH2.xml +0 -547
  181. package/myReact/inutiles/testHH.xml +0 -95
  182. package/myReact/inutiles/trouveLaPercuTenor.xml +0 -349
@@ -1,234 +0,0 @@
1
- <xml xmlns="https://developers.google.com/blockly/xml">
2
- <variables>
3
- <variable id="uYtY/7giK^Y2q2#O7o2F">tankTest</variable>
4
- <variable id="Sk=)C%r}uS^6M}fR]Hxt">moduleTest</variable>
5
- <variable id="E}[@+UnfN1KQ^+Vibn;i">groupe1</variable>
6
- <variable id="hf3zEJan`ym~0qeoJKi|">groupe2</variable>
7
- <variable id="I}2]wS/Z,BVunE@4Ey/S">groupe3</variable>
8
- <variable id="DoMa$K6ha)IT~2)HtIac">halt</variable>
9
- <variable id="f0e%qGG}?S5`I[-+if%N">start</variable>
10
- <variable id="~YxadVt:@N-|nQbbUt5Y">djembe</variable>
11
- <variable id="hchBnoEv(z!xIgDRVuzY">tick</variable>
12
- </variables>
13
- <block type="hh_ORCHESTRATION" id="M)ZKyxG8S)|LJFqE+^ty" x="173" y="110">
14
- <statement name="MODULES">
15
- <block type="tank" id="1St5GLB8}~`|0:%,eLgO">
16
- <field name="groupeClient">255</field>
17
- <statement name="SIGNAL">
18
- <block type="variables_set" id=",3jAB~1qS]wHZL6kgM8w">
19
- <field name="VAR" id="uYtY/7giK^Y2q2#O7o2F">tankTest</field>
20
- <value name="VALUE">
21
- <block type="lists_create_with" id="^^f*q8$~k`u+oJB:l^]l">
22
- <mutation items="3"></mutation>
23
- <value name="ADD0">
24
- <block type="variables_get" id="a`M.Ag)]0b9~kS1V;5X+">
25
- <field name="VAR" id="E}[@+UnfN1KQ^+Vibn;i">groupe1</field>
26
- </block>
27
- </value>
28
- <value name="ADD1">
29
- <block type="variables_get" id="D8$lSNOCQFxSURaQ4HzN">
30
- <field name="VAR" id="hf3zEJan`ym~0qeoJKi|">groupe2</field>
31
- </block>
32
- </value>
33
- <value name="ADD2">
34
- <block type="variables_get" id="4:1Y;?{,_/iEVk}p-HTm">
35
- <field name="VAR" id="I}2]wS/Z,BVunE@4Ey/S">groupe3</field>
36
- </block>
37
- </value>
38
- </block>
39
- </value>
40
- </block>
41
- </statement>
42
- <next>
43
- <block type="hh_module" id="FC`id43ZS`y9:Nmz?Z_z">
44
- <value name="NAME">
45
- <block type="variables_get" id="qW(:C.GVHWLLDPyb?vsQ">
46
- <field name="VAR" id="Sk=)C%r}uS^6M}fR]Hxt">moduleTest</field>
47
- </block>
48
- </value>
49
- <statement name="BODY">
50
- <block type="hh_print_serveur" id="/4K,h;|CPVMxN[@]x03I">
51
- <value name="TEXT">
52
- <block type="text" id="N~ybzf%=lfn%$,TEXK;/">
53
- <field name="TEXT">Module de Test</field>
54
- </block>
55
- </value>
56
- </block>
57
- </statement>
58
- </block>
59
- </next>
60
- </block>
61
- </statement>
62
- <statement name="BODY">
63
- <block type="hh_run" id=":qa:^Pt7;RtU|N;~u`S:">
64
- <value name="MODULE">
65
- <block type="variables_get" id="Z5rfx9PYOy@D%-$Ww+%r">
66
- <field name="VAR" id="Sk=)C%r}uS^6M}fR]Hxt">moduleTest</field>
67
- </block>
68
- </value>
69
- <next>
70
- <block type="set_timer_division" id="YDVkr_g1PL6TJPSgP1tS" disabled="true">
71
- <field name="timer">1</field>
72
- <next>
73
- <block type="run_tank" id="ikYx$H4z93zi)}^m`2bC" disabled="true">
74
- <value name="TANKS">
75
- <block type="variables_get" id="1u:J`25/1FW;z9b,8j!w">
76
- <field name="VAR" id="uYtY/7giK^Y2q2#O7o2F">tankTest</field>
77
- </block>
78
- </value>
79
- <next>
80
- <block type="patternListLength" id="6L0=%-l-]jphKZd!;.Fe" disabled="true">
81
- <field name="valeur">5</field>
82
- <field name="groupe">255</field>
83
- <next>
84
- <block type="set_score_policy" id="xs1bH6,YmX}f(]GgGQRH" disabled="true">
85
- <field name="policy">1</field>
86
- <next>
87
- <block type="set_score_class" id="C9Pbswgx}`U0gjprYC-o" disabled="true">
88
- <field name="class">1</field>
89
- <next>
90
- <block type="cleanqueues" id="GWMf/2zqP{BM``z)cNeW" disabled="true">
91
- <next>
92
- <block type="cleanOneQueue" id="G()cn-}N2a|^p-5Cxr^V" disabled="true">
93
- <field name="number">1</field>
94
- <next>
95
- <block type="pauseQueues" id=",5JMb:~(3hAtUs3qFxme" disabled="true">
96
- <next>
97
- <block type="resumeQueues" id="U7K.6GyZFHH@FR^SxpYA" disabled="true">
98
- <next>
99
- <block type="pauseOneQueue" id="-V_d)XI}EV]G#t3$N]j3" disabled="true">
100
- <field name="number">1</field>
101
- <next>
102
- <block type="resumeOneQueue" id="Iz!*r*`P!a=mBtMVDHHm" disabled="true">
103
- <field name="number">1</field>
104
- <next>
105
- <block type="hh_abort" id="J]Q@m|E^ePpz#nIZY]JH" disabled="true">
106
- <field name="TIMES">1</field>
107
- <value name="SIGNAL">
108
- <block type="variables_get" id="88(Oo_v3}/BpDl-0{Stm">
109
- <field name="VAR" id="DoMa$K6ha)IT~2)HtIac">halt</field>
110
- </block>
111
- </value>
112
- <statement name="BODY">
113
- <block type="hh_print_serveur" id="P#*$4-/#,r7dwl:)88p`">
114
- <value name="TEXT">
115
- <block type="text" id="/D~d5m2OX@-)r|wPtS0M">
116
- <field name="TEXT">Début en attente d'abort</field>
117
- </block>
118
- </value>
119
- <next>
120
- <block type="hh_wait_for" id="=hqMMJln19Xl9M]6gB{z">
121
- <field name="TIMES">1</field>
122
- <value name="SIGNAL">
123
- <block type="variables_get" id="C0#r@Z8T?jN2@eX6!Eii">
124
- <field name="VAR" id="f0e%qGG}?S5`I[-+if%N">start</field>
125
- </block>
126
- </value>
127
- <next>
128
- <block type="hh_print_serveur" id="CL,RM.2d20qW9xUnTa%L">
129
- <value name="TEXT">
130
- <block type="text" id="7wZ8SYIrHfL;6V?EBu-A">
131
- <field name="TEXT">Debut apres start</field>
132
- </block>
133
- </value>
134
- <next>
135
- <block type="set_group" id="ZBe*zWkQO%-p;cLSSTb-">
136
- <field name="groupe">255</field>
137
- <value name="GROUPS">
138
- <block type="variables_get" id=".-Ns|r/UA7s%[(.y{%Uo">
139
- <field name="VAR" id="~YxadVt:@N-|nQbbUt5Y">djembe</field>
140
- </block>
141
- </value>
142
- <next>
143
- <block type="set_group" id="Yl}G%L_C@NeybSJAX/|=">
144
- <field name="groupe">255</field>
145
- <value name="GROUPS">
146
- <block type="variables_get" id="(s4Yyw7{*+]uI9`~AFz:">
147
- <field name="VAR" id="E}[@+UnfN1KQ^+Vibn;i">groupe1</field>
148
- </block>
149
- </value>
150
- <next>
151
- <block type="hh_wait_for" id="tXdI*~Alz%@sxxBql%~!">
152
- <field name="TIMES">15</field>
153
- <value name="SIGNAL">
154
- <block type="variables_get" id="9oZ*Rc1za_GR|@27W*ej">
155
- <field name="VAR" id="hchBnoEv(z!xIgDRVuzY">tick</field>
156
- </block>
157
- </value>
158
- <next>
159
- <block type="unset_group" id="zqHD$86t_?/d+[SwlPvj">
160
- <field name="groupe">255</field>
161
- <value name="GROUPS">
162
- <block type="variables_get" id="H]RKM}c+2(#P]AiMS6oI">
163
- <field name="VAR" id="~YxadVt:@N-|nQbbUt5Y">djembe</field>
164
- </block>
165
- </value>
166
- <next>
167
- <block type="cleanChoiceList" id="|~l+Qdv/x!a,(+JWu;hD">
168
- <field name="groupe">255</field>
169
- <next>
170
- <block type="every" id="!lS;oV-`K#@#B7Y%BwbC">
171
- <field name="TIMES">1</field>
172
- <value name="SIGNAL">
173
- <block type="variables_get" id="z$!j}nfstZ+S`BZ8QXHS">
174
- <field name="VAR" id="hchBnoEv(z!xIgDRVuzY">tick</field>
175
- </block>
176
- </value>
177
- <statement name="BODY">
178
- <block type="hh_print_serveur" id="~vT||=Rc(T/ekLeUgaep">
179
- <value name="TEXT">
180
- <block type="text" id="(80NH%|dDCtx4X,ne~bB">
181
- <field name="TEXT">Every tick</field>
182
- </block>
183
- </value>
184
- </block>
185
- </statement>
186
- </block>
187
- </next>
188
- </block>
189
- </next>
190
- </block>
191
- </next>
192
- </block>
193
- </next>
194
- </block>
195
- </next>
196
- </block>
197
- </next>
198
- </block>
199
- </next>
200
- </block>
201
- </next>
202
- </block>
203
- </statement>
204
- <next>
205
- <block type="reset_orchestration" id="%$42($kr:Uc`mCsvKPg+" disabled="true"></block>
206
- </next>
207
- </block>
208
- </next>
209
- </block>
210
- </next>
211
- </block>
212
- </next>
213
- </block>
214
- </next>
215
- </block>
216
- </next>
217
- </block>
218
- </next>
219
- </block>
220
- </next>
221
- </block>
222
- </next>
223
- </block>
224
- </next>
225
- </block>
226
- </next>
227
- </block>
228
- </next>
229
- </block>
230
- </next>
231
- </block>
232
- </statement>
233
- </block>
234
- </xml>
@@ -1,104 +0,0 @@
1
- var moduleTest;
2
-
3
-
4
-
5
- "use strict";
6
- var hh = require("../hiphop/hiphop.js");
7
- var par = require('../serveur/skiniParametres');
8
- var gcs;
9
- var DAW;
10
-
11
- var debug = false;
12
- var debug1 = true;
13
-
14
- //var serveur;
15
-
16
- function setServ(ser, daw, groupeCS){
17
- console.log("setServ");
18
- DAW = daw;
19
- serveur = ser;
20
- gcs = groupeCS;
21
- }
22
- exports.setServ = setServ;
23
-
24
- // Création des signaux OUT de contrôle de la matrice des possibles
25
- // Ici et immédiatement.
26
- var signals = [];
27
- var signalsText = [];
28
-
29
- for (var i=0; i < par.groupesDesSons.length; i++) {
30
- var signame = par.groupesDesSons[i][0] + "OUT";
31
- signalsText.push(signame);
32
-
33
- var signal = hh.SIGNAL({
34
- "%location":{},
35
- "direction":"OUT",
36
- "name":signame,
37
- "init_func":function (){return [false, -1];}
38
- });
39
- signals.push(signal);
40
- }
41
-
42
- // Création des signaux IN de sélection de patterns
43
- for (var i=0; i < par.groupesDesSons.length; i++) {
44
- var signame = par.groupesDesSons[i][0] + "IN";
45
- signalsText.push(signame);
46
-
47
- var signal = hh.SIGNAL({
48
- "%location":{},
49
- "direction":"IN",
50
- "name":signame
51
- });
52
- signals.push(signal);
53
- }
54
-
55
- function setSignals(){
56
- if(debug) console.log("orchestrationHH: setSignals: ", signals);
57
- var machine = new hh.ReactiveMachine( orchestration );
58
- return machine;
59
- }
60
- exports.setSignals = setSignals;
61
-
62
-
63
- moduleTest = hh.MODULE({"id":"moduleTest","%location":{},"%tag":"module"},
64
-
65
-
66
- hh.ATOM(
67
- {
68
- "%location":{},
69
- "%tag":"node",
70
- "apply":function () {console.log('module de test');}
71
- }
72
- ),
73
-
74
- );
75
-
76
-
77
- var orchestration = hh.MODULE(
78
- {"id":"Orchestration","%location":{},"%tag":"module"},
79
- signals,
80
-
81
- hh.SIGNAL({"%location":{},"direction":"IN","name":"start"}),
82
- hh.SIGNAL({"%location":{},"direction":"IN","name":"halt"}),
83
- hh.SIGNAL({"%location":{},"direction":"IN","name":"tick"}),
84
- hh.SIGNAL({"%location":{},"direction":"IN","name":"DAWON"}),
85
- hh.SIGNAL({"%location":{},"direction":"IN","name":"patternSignal"}),
86
- hh.SIGNAL({"%location":{},"direction":"IN","name":"controlFromVideo"}),
87
- hh.SIGNAL({"%location":{},"direction":"IN","name":"pulsation"}),
88
- hh.SIGNAL({"%location":{},"direction":"IN","name":"midiSignal"}),
89
- hh.SIGNAL({"%location":{},"direction":"IN","name":"emptyQueueSignal"}),
90
-
91
-
92
-
93
-
94
- hh.RUN({
95
- "%location":{},
96
- "%tag":"run",
97
- "module": hh.getModule( "moduleTest", {}),
98
- "''":"",
99
-
100
- }),
101
-
102
-
103
- );
104
- exports.orchestration = orchestration;
@@ -1,34 +0,0 @@
1
- <xml xmlns="https://developers.google.com/blockly/xml">
2
- <variables>
3
- <variable id="Sk=)C%r}uS^6M}fR]Hxt">moduleTest</variable>
4
- </variables>
5
- <block type="hh_ORCHESTRATION" id="M)ZKyxG8S)|LJFqE+^ty" x="173" y="110">
6
- <statement name="MODULES">
7
- <block type="hh_module" id="Dx/hJ0tvVT6VGR,?R1uu">
8
- <value name="NAME">
9
- <block type="variables_get" id="(,10DE-q/LhnUv?)Xr1$">
10
- <field name="VAR" id="Sk=)C%r}uS^6M}fR]Hxt">moduleTest</field>
11
- </block>
12
- </value>
13
- <statement name="BODY">
14
- <block type="hh_print_serveur" id="(%SX%uIWmA6-dRXSzPtn">
15
- <value name="TEXT">
16
- <block type="text" id="Q{$^~*e?vd#E8u+nJ%h`">
17
- <field name="TEXT">module de test</field>
18
- </block>
19
- </value>
20
- </block>
21
- </statement>
22
- </block>
23
- </statement>
24
- <statement name="BODY">
25
- <block type="hh_run" id=":qa:^Pt7;RtU|N;~u`S:">
26
- <value name="MODULE">
27
- <block type="variables_get" id="Z5rfx9PYOy@D%-$Ww+%r">
28
- <field name="VAR" id="Sk=)C%r}uS^6M}fR]Hxt">moduleTest</field>
29
- </block>
30
- </value>
31
- </block>
32
- </statement>
33
- </block>
34
- </xml>
@@ -1,178 +0,0 @@
1
- // Programme en myReact
2
-
3
- var violon1, violon2, violon3, tick, stopTankViolon, groupePercuON, stopTankPiano, groupeTrompetteON, groupeTrompetteOFF, groupePercuOFF, tankViolon, tankPiano, piano1, piano2, piano3;
4
-
5
- var mr = require("./myReact.js");
6
- var gcs = require("../serveur/autocontroleur/groupeClientsSons.js");
7
-
8
- var debug1 = true;
9
- var debug = false;
10
-
11
- // A mettre dans Blockly
12
- var skini;
13
- function setSkini(skiniMaster){
14
- skini = skiniMaster;
15
- //console.log("******* orchestration: setSkini:", skini);
16
- }
17
- exports.setSkini = setSkini;
18
-
19
- mr.createSignal("stopTankViolon", 0);
20
- mr.createSignal("stopTankPiano", 0);
21
-
22
- // A mettre dans Blockly
23
- mr.createSignal("tick", 0);
24
- mr.createSignal("DAWON", 0);
25
-
26
- // Debut de module
27
- tankViolon = [
28
- // Debut de abort
29
- mr._abort("stopTankViolon",1,
30
- [
31
- mr._atom( ()=> {console.log('Attend Percu1');} ),
32
- mr._await("Percu1", 1),
33
-
34
- mr._atom( ()=> {console.log('Attend Percu2');} ),
35
- mr._await("Percu2", 1),
36
-
37
- mr._atom( ()=> {console.log('Attend Percu3');} ),
38
- mr._await("Percu3", 1),
39
- ]
40
- ),
41
- mr._atom( ()=> {console.log('Tank Violon tué !');} ),
42
- ];
43
-
44
- // Debut de module
45
- tankPiano = [
46
- // Debut de abort
47
- mr._abort("stopTankPiano",1,
48
- [
49
- mr._atom( ()=> {console.log('Attend Percu4');} ),
50
- mr._await("Percu4", 1),
51
-
52
- mr._atom( ()=> {console.log('Attend Percu5');} ),
53
- mr._await("Percu5", 1),
54
-
55
- mr._atom( ()=> {console.log('Attend Percu6');} ),
56
- mr._await("Percu6", 1),
57
- ]
58
- ),
59
- mr._atom( ()=> {console.log('Tank Piano tué !');} ),
60
- ];
61
-
62
- var instructions = [
63
- mr._atom( ()=> { gcs.setComputeScorePolicy(2); } ),
64
- mr._atom( ()=> { gcs.setComputeScoreClass(1); } ),
65
-
66
- mr._abort("stop",1,
67
- [
68
- mr._await("start", 1),
69
- mr._par(
70
- [
71
- // Debut de seq
72
- mr._seq(
73
- [
74
- mr._atom( ()=> {console.log('Début orchestration 1');} ),
75
- mr._emit("groupe1OUT", [true, 255]),
76
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(255,"groupe1",true);}),
77
- mr._await("tick", 5),
78
- mr._atom( ()=> {console.log('Après 5 ticks');} ),
79
-
80
- // Debut de par
81
- mr._par(
82
- [
83
- // Debut de par
84
- mr._par(
85
- [
86
- // Debut de run module
87
- mr._run(tankViolon),
88
-
89
- // Debut de seq
90
- mr._seq(
91
- [
92
- mr._await("tick", 5),
93
- mr._atom( ()=> {console.log('Après 5 ticks violon');} ),
94
- mr._emit("stopTankViolon",0),
95
- ]
96
- ),
97
- ]
98
- ),
99
-
100
- // Debut de par
101
- mr._par(
102
- [
103
- // Debut de run module
104
- mr._run(tankPiano),
105
- // Debut de seq
106
- mr._seq(
107
- [
108
- mr._await("tick", 5),
109
- mr._atom( ()=> {console.log('Après 5 ticks piano');} ),
110
- mr._emit("stopTankPiano",0),
111
- ]
112
- ),
113
- ]
114
- ),
115
- ]
116
- ),
117
-
118
- mr._emit("groupe1OUT",[false, 255]),
119
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(255,"groupe1",false);}),
120
-
121
- mr._emit("groupe2OUT",[true, 255]),
122
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(255,"groupe2",true);}),
123
-
124
- mr._await("tick", 5),
125
-
126
- mr._emit("groupe2OUT",[false, 255]),
127
- mr._atom( ()=> { gcs.informSelecteurOnMenuChange(255,"groupe2",false);}),
128
-
129
- mr._atom( ()=> {console.log('Fin orchestration');} ),
130
- mr._atom( ()=> { gcs.cleanChoiceList(255); } ),
131
- mr._atom( ()=> { gcs.alertInfoScoreON('Fin orchestration'); } ),
132
- ]
133
- ),
134
-
135
- // Debut de every
136
- mr._every("start",1,
137
- [
138
- mr._atom( ()=> {console.log('orchestration: start');} ),
139
- ]
140
- ),
141
- /* mr._every("tick",1,
142
- [
143
- mr._atom( ()=> {console.log('orchestration: tick');} ),
144
- ]
145
- ),*/
146
- ]
147
- ),
148
- ]
149
- ),
150
- mr._atom( ()=> {console.log('Orchestration Stop');} ),
151
- mr._atom( ()=> { gcs.cleanChoiceList(255); } ),
152
- mr._atom( ()=> { gcs.alertInfoScoreON('Orchestration Stop'); } ),
153
- ];
154
-
155
- // A mettre dans Blockly
156
- var prog = mr.createModule(instructions);
157
-
158
- // A mettre dans Blockly
159
- function runProg(){
160
- // mr.printProgram(prog, false);
161
- mr.runProg(prog);
162
- //skini.test1("**** depuis orchestration");
163
- }
164
- exports.runProg = runProg;
165
-
166
- // A mettre dans Blockly
167
- function createListener(signal, action){
168
- if(debug) console.log("orchestration: createListener: ", signal);
169
- mr.createSignal(signal, 0);
170
- mr.addEventListener(signal, action);
171
- }
172
- exports.createListener = createListener;
173
-
174
- // A mettre dans Blockly
175
- function activateSignal(signal, val){
176
- mr.activateSignal(signal, val);
177
- }
178
- exports.activateSignal = activateSignal;