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,465 +0,0 @@
1
- <xml xmlns="https://developers.google.com/blockly/xml">
2
- <variables>
3
- <variable id="gp.Bm(j^?)+YDi3Au3U,">violon1</variable>
4
- <variable id="Yy4vmS;TjcOx+8CxhN2F">violon2</variable>
5
- <variable id="WDmXA$|}Vw+vL+[CZ)I*">violon3</variable>
6
- <variable id="PUKhf-GjX1_kh99Hvl6J">tick</variable>
7
- <variable id="~]Akm+43C$a9P/6x}t:M">stopTankViolon</variable>
8
- <variable id="GT7zIRR!q$CrVCP.R-Y4">groupePercuON</variable>
9
- <variable id="SY^Q_eAV.87xAk8?o^y!">stopTankPiano</variable>
10
- <variable id="oWLw:}:Aj~eUreDC%(r*">groupeTrompetteON</variable>
11
- <variable id="=:iJtjY8?sZ~I}w3k)4F">groupeTrompetteOFF</variable>
12
- <variable id="R(]3iK*^MmtX^(Tl%gFv">groupePercuOFF</variable>
13
- <variable id="^dClo.}S0];3/(C+l#62">tankViolon</variable>
14
- <variable id="jV8OPisA!FIY^pl@SWFl">tankPiano</variable>
15
- <variable id="opY=,1|s#r!l8fGV4}jE">piano1</variable>
16
- <variable id="m@Xo=~R,yXB)`7WSO||c">piano2</variable>
17
- <variable id="kjESyvi8s4`U+oUDW3W-">piano3</variable>
18
- </variables>
19
- <block type="orchestration" id="!he$,{:BvI4cMR~f;LCj" x="91" y="81">
20
- <field name="trajet">1</field>
21
- <statement name="SIGNALS">
22
- <block type="declare_signal" id="EvQt@OyI=6kW8SKav(aP">
23
- <value name="signal">
24
- <block type="variables_get" id="U3|V`xo=lot?3NN.sbf)">
25
- <field name="VAR" id="gp.Bm(j^?)+YDi3Au3U,">violon1</field>
26
- </block>
27
- </value>
28
- <next>
29
- <block type="declare_signal" id="a1;_E2V`*nwZx$Ls7!)]">
30
- <value name="signal">
31
- <block type="variables_get" id="FQFC9%`beq3nT?y+b.0$">
32
- <field name="VAR" id="Yy4vmS;TjcOx+8CxhN2F">violon2</field>
33
- </block>
34
- </value>
35
- <next>
36
- <block type="declare_signal" id="AG|)bwxW,?1q/TYh1r.a">
37
- <value name="signal">
38
- <block type="variables_get" id=";B8(=bh*S?pEKay`WS0f">
39
- <field name="VAR" id="WDmXA$|}Vw+vL+[CZ)I*">violon3</field>
40
- </block>
41
- </value>
42
- <next>
43
- <block type="declare_signal" id="3mobHNQ4mT2H{Q(XQ+wP">
44
- <value name="signal">
45
- <block type="variables_get" id="aobJS;vE?h!hhRkKCDQB">
46
- <field name="VAR" id="~]Akm+43C$a9P/6x}t:M">stopTankViolon</field>
47
- </block>
48
- </value>
49
- <next>
50
- <block type="declare_signal" id="q;G/rB$9]QN9za7qKHJj">
51
- <value name="signal">
52
- <block type="variables_get" id="j/[#PeboJrnO[5aVq5h{">
53
- <field name="VAR" id="SY^Q_eAV.87xAk8?o^y!">stopTankPiano</field>
54
- </block>
55
- </value>
56
- <next>
57
- <block type="declare_signal" id="o[a=!8cdYS!YUA*zi!2b">
58
- <value name="signal">
59
- <block type="variables_get" id="TT)soir|Q6:`F2S=9;J/">
60
- <field name="VAR" id="oWLw:}:Aj~eUreDC%(r*">groupeTrompetteON</field>
61
- </block>
62
- </value>
63
- <next>
64
- <block type="declare_signal" id="!EuVA.=q,Y{`+x7}p4[B">
65
- <value name="signal">
66
- <block type="variables_get" id="+N+ofyGhYdB4Of:1EZM!">
67
- <field name="VAR" id="=:iJtjY8?sZ~I}w3k)4F">groupeTrompetteOFF</field>
68
- </block>
69
- </value>
70
- <next>
71
- <block type="declare_signal" id="h!;l)[^*y]zFtU2[^NvO">
72
- <value name="signal">
73
- <block type="variables_get" id="$rAXeaq+sl|V3]fHcF]1">
74
- <field name="VAR" id="GT7zIRR!q$CrVCP.R-Y4">groupePercuON</field>
75
- </block>
76
- </value>
77
- <next>
78
- <block type="declare_signal" id="ptGy4gDkUD3*4EW;%=Ue">
79
- <value name="signal">
80
- <block type="variables_get" id=";8PIkf0gz36E;.!Z)zlx">
81
- <field name="VAR" id="R(]3iK*^MmtX^(Tl%gFv">groupePercuOFF</field>
82
- </block>
83
- </value>
84
- <next>
85
- <block type="module_myReact" id="qdu#x^jFGywDti3w[+#/">
86
- <value name="NAME">
87
- <block type="variables_get" id="-I$B[s:H=+6/]FQ$X8ug">
88
- <field name="VAR" id="^dClo.}S0];3/(C+l#62">tankViolon</field>
89
- </block>
90
- </value>
91
- <statement name="BODY">
92
- <block type="abort" id="6g(.!Rzm2sPvk;f88~8H">
93
- <field name="TIMES">1</field>
94
- <value name="SIGNAL">
95
- <block type="variables_get" id="RVs+5$8EqAf@bQ:yb/,(">
96
- <field name="VAR" id="~]Akm+43C$a9P/6x}t:M">stopTankViolon</field>
97
- </block>
98
- </value>
99
- <statement name="BODY">
100
- <block type="print_serveur" id="Y.2v6egF3LQV0kE~T*Qw">
101
- <value name="TEXT">
102
- <block type="text" id="Y|bF)G1h-okO^Ynf{_m_">
103
- <field name="TEXT">Attend violon1</field>
104
- </block>
105
- </value>
106
- <next>
107
- <block type="wait_for" id="8o.v!i-.OjD9=E7GQJeP">
108
- <field name="TIMES">1</field>
109
- <value name="SIGNAL">
110
- <block type="variables_get" id="4O}UqWV2ZqiPZq{)#-Y#">
111
- <field name="VAR" id="gp.Bm(j^?)+YDi3Au3U,">violon1</field>
112
- </block>
113
- </value>
114
- <next>
115
- <block type="print_serveur" id="SHsY(b,l!N|G*Sg8tnRO">
116
- <value name="TEXT">
117
- <block type="text" id="P#d9vdZEEjp{3EcW^4Tx">
118
- <field name="TEXT">Attend violon2</field>
119
- </block>
120
- </value>
121
- <next>
122
- <block type="wait_for" id="Nok5m[!a;@|jsd;uo+yf">
123
- <field name="TIMES">1</field>
124
- <value name="SIGNAL">
125
- <block type="variables_get" id="Ap:%n.}qXly%HIbm@/%i">
126
- <field name="VAR" id="Yy4vmS;TjcOx+8CxhN2F">violon2</field>
127
- </block>
128
- </value>
129
- <next>
130
- <block type="print_serveur" id="Dp9QD,a]:rO~2bw!0Bwb">
131
- <value name="TEXT">
132
- <block type="text" id="%a2$NRzC1O-{wo/Zz%e8">
133
- <field name="TEXT">Attend violon3</field>
134
- </block>
135
- </value>
136
- <next>
137
- <block type="wait_for" id="_nM4[_^p9;T0b,mk)v+s">
138
- <field name="TIMES">1</field>
139
- <value name="SIGNAL">
140
- <block type="variables_get" id="B$g0@CwSLzWT~lf#~wX9">
141
- <field name="VAR" id="WDmXA$|}Vw+vL+[CZ)I*">violon3</field>
142
- </block>
143
- </value>
144
- </block>
145
- </next>
146
- </block>
147
- </next>
148
- </block>
149
- </next>
150
- </block>
151
- </next>
152
- </block>
153
- </next>
154
- </block>
155
- </statement>
156
- </block>
157
- </statement>
158
- <next>
159
- <block type="module_myReact" id="k0N@*HpR-|.VGv`S8465">
160
- <value name="NAME">
161
- <block type="variables_get" id="*.@;y]ymI3Cyp:l{yvC|">
162
- <field name="VAR" id="jV8OPisA!FIY^pl@SWFl">tankPiano</field>
163
- </block>
164
- </value>
165
- <statement name="BODY">
166
- <block type="abort" id="AoP_.A[@hLn]c9@wWz;*">
167
- <field name="TIMES">1</field>
168
- <value name="SIGNAL">
169
- <block type="variables_get" id="MS{g49w)]a5YN4}2ZsY9">
170
- <field name="VAR" id="SY^Q_eAV.87xAk8?o^y!">stopTankPiano</field>
171
- </block>
172
- </value>
173
- <statement name="BODY">
174
- <block type="print_serveur" id="T,4MOUYSW^m}Vqt/Ph}K">
175
- <value name="TEXT">
176
- <block type="text" id="D:g!W:pYo_2uunf$Cep;">
177
- <field name="TEXT">Attend piano1</field>
178
- </block>
179
- </value>
180
- <next>
181
- <block type="wait_for" id="?MYXu]l)b!?RbY=J#Ta/">
182
- <field name="TIMES">1</field>
183
- <value name="SIGNAL">
184
- <block type="variables_get" id="b%6z/gTg$+iYU4Si)$L8">
185
- <field name="VAR" id="opY=,1|s#r!l8fGV4}jE">piano1</field>
186
- </block>
187
- </value>
188
- <next>
189
- <block type="print_serveur" id="}*$i=Oj[D]]aPe)kDM8,">
190
- <value name="TEXT">
191
- <block type="text" id="E,l;YXD^88Tpa_LmSMS_">
192
- <field name="TEXT">Attend piano2</field>
193
- </block>
194
- </value>
195
- <next>
196
- <block type="wait_for" id="xzI?(d!qg]{@H*$JQ_qQ">
197
- <field name="TIMES">1</field>
198
- <value name="SIGNAL">
199
- <block type="variables_get" id="iL~Ys3C=!Ro8F*9Bwe;8">
200
- <field name="VAR" id="m@Xo=~R,yXB)`7WSO||c">piano2</field>
201
- </block>
202
- </value>
203
- <next>
204
- <block type="print_serveur" id="Q}EwE[h[ys#D]TzkZ^;?">
205
- <value name="TEXT">
206
- <block type="text" id="z~?lW0v5G%.%J}w9KI7T">
207
- <field name="TEXT">Attend piano3</field>
208
- </block>
209
- </value>
210
- <next>
211
- <block type="wait_for" id="diY8;C{l6zpcL~}hjjJ$">
212
- <field name="TIMES">1</field>
213
- <value name="SIGNAL">
214
- <block type="variables_get" id="n/DN#M_bep(A6cRnLs]d">
215
- <field name="VAR" id="kjESyvi8s4`U+oUDW3W-">piano3</field>
216
- </block>
217
- </value>
218
- </block>
219
- </next>
220
- </block>
221
- </next>
222
- </block>
223
- </next>
224
- </block>
225
- </next>
226
- </block>
227
- </next>
228
- </block>
229
- </statement>
230
- </block>
231
- </statement>
232
- </block>
233
- </next>
234
- </block>
235
- </next>
236
- </block>
237
- </next>
238
- </block>
239
- </next>
240
- </block>
241
- </next>
242
- </block>
243
- </next>
244
- </block>
245
- </next>
246
- </block>
247
- </next>
248
- </block>
249
- </next>
250
- </block>
251
- </next>
252
- </block>
253
- </statement>
254
- <statement name="BODY">
255
- <block type="par_body" id="-h,hX-..$g,mP+2,dveQ">
256
- <statement name="BODY">
257
- <block type="seq_body" id="WJOl`CwD!o-KxU!(G*_d">
258
- <statement name="BODY">
259
- <block type="print_serveur" id="D,eW6sM-0X;-dRV(v,rH">
260
- <value name="TEXT">
261
- <block type="text" id="m24a^{+8BvHjYQ^oX~%X">
262
- <field name="TEXT">Début orchestration</field>
263
- </block>
264
- </value>
265
- <next>
266
- <block type="emit_value" id="A5:ho8GMQ`B5lTDkpP3o">
267
- <field name="Signal_Value">0</field>
268
- <value name="SIGNAL">
269
- <block type="variables_get" id=")CYI_TwJkb/,-YYV[w#%">
270
- <field name="VAR" id="GT7zIRR!q$CrVCP.R-Y4">groupePercuON</field>
271
- </block>
272
- </value>
273
- <next>
274
- <block type="wait_for" id="m}wtf[jUzc*|o!Qz?jt^">
275
- <field name="TIMES">5</field>
276
- <value name="SIGNAL">
277
- <block type="variables_get" id=",|X4RUspfV@.p;m/!uaj">
278
- <field name="VAR" id="PUKhf-GjX1_kh99Hvl6J">tick</field>
279
- </block>
280
- </value>
281
- <next>
282
- <block type="print_serveur" id="A+[zBmn^gi4v_xyXG:L(">
283
- <value name="TEXT">
284
- <block type="text" id="``U?Czlhx1e4*B$dDp6R">
285
- <field name="TEXT">Après 5 ticks</field>
286
- </block>
287
- </value>
288
- <next>
289
- <block type="par_body" id="1TL+,/)8$Y}ryA%/lUwW">
290
- <statement name="BODY">
291
- <block type="par_body" id="8[IzA1Z+EW*Q=-}wW@cf">
292
- <statement name="BODY">
293
- <block type="run_module" id="YXqN3z)MZMJ5GAOptRP}">
294
- <value name="NAME">
295
- <block type="variables_get" id="v2b|*u8F({SchL(J%8aJ">
296
- <field name="VAR" id="^dClo.}S0];3/(C+l#62">tankViolon</field>
297
- </block>
298
- </value>
299
- <next>
300
- <block type="seq_body" id="_8k*Vn/zROOqMwa+@vy-">
301
- <statement name="BODY">
302
- <block type="wait_for" id="aDh]F,gJ;+Eihd5s]qZD">
303
- <field name="TIMES">5</field>
304
- <value name="SIGNAL">
305
- <block type="variables_get" id="S;x=tbk(s1Cx#g%Tw%+2">
306
- <field name="VAR" id="PUKhf-GjX1_kh99Hvl6J">tick</field>
307
- </block>
308
- </value>
309
- <next>
310
- <block type="print_serveur" id="4*XY670.FfY$gNl||fU-">
311
- <value name="TEXT">
312
- <block type="text" id="KP#^1s^zWG-^.f5VvZca">
313
- <field name="TEXT">Après 5 ticks violon</field>
314
- </block>
315
- </value>
316
- <next>
317
- <block type="emit_value" id="/ic/GuR8X{Ls_@D%oT*(">
318
- <field name="Signal_Value">0</field>
319
- <value name="SIGNAL">
320
- <block type="variables_get" id="}Y32{F/BI??ef,t-KSZ8">
321
- <field name="VAR" id="~]Akm+43C$a9P/6x}t:M">stopTankViolon</field>
322
- </block>
323
- </value>
324
- </block>
325
- </next>
326
- </block>
327
- </next>
328
- </block>
329
- </statement>
330
- </block>
331
- </next>
332
- </block>
333
- </statement>
334
- <next>
335
- <block type="par_body" id="@Hbbke#Lmqhm2x=1`S?Z">
336
- <statement name="BODY">
337
- <block type="run_module" id="1PR;%eQ5Y!*O@|;:j)D;">
338
- <value name="NAME">
339
- <block type="variables_get" id="losg}+#7`+M~77f8tMZH">
340
- <field name="VAR" id="jV8OPisA!FIY^pl@SWFl">tankPiano</field>
341
- </block>
342
- </value>
343
- <next>
344
- <block type="seq_body" id="/:+r4DDttlaaV~9}y[)U">
345
- <statement name="BODY">
346
- <block type="wait_for" id="VXpSM^XWJ?r$Wgs,/5#(">
347
- <field name="TIMES">5</field>
348
- <value name="SIGNAL">
349
- <block type="variables_get" id="x*cO|(fMzuS:gILIh^:s">
350
- <field name="VAR" id="PUKhf-GjX1_kh99Hvl6J">tick</field>
351
- </block>
352
- </value>
353
- <next>
354
- <block type="print_serveur" id="8#xum)#^t02@$Nc~`w+,">
355
- <value name="TEXT">
356
- <block type="text" id="ZDqg(Oh.m2KrODqrj_/W">
357
- <field name="TEXT">Après 5 ticks piano</field>
358
- </block>
359
- </value>
360
- <next>
361
- <block type="emit_value" id="[BRHg|N%r#%VlYPJiZ0n">
362
- <field name="Signal_Value">0</field>
363
- <value name="SIGNAL">
364
- <block type="variables_get" id="[_KCD2z_mH[G?Ys*hTYw">
365
- <field name="VAR" id="SY^Q_eAV.87xAk8?o^y!">stopTankPiano</field>
366
- </block>
367
- </value>
368
- </block>
369
- </next>
370
- </block>
371
- </next>
372
- </block>
373
- </statement>
374
- </block>
375
- </next>
376
- </block>
377
- </statement>
378
- </block>
379
- </next>
380
- </block>
381
- </statement>
382
- <next>
383
- <block type="emit_value" id="F8a`8jsTa*Jq[5m.b;(R">
384
- <field name="Signal_Value">0</field>
385
- <value name="SIGNAL">
386
- <block type="variables_get" id="`JqsgC194;wt8VFavM[l">
387
- <field name="VAR" id="R(]3iK*^MmtX^(Tl%gFv">groupePercuOFF</field>
388
- </block>
389
- </value>
390
- <next>
391
- <block type="emit_value" id=")n*kZK:B=}_{]U_+8WiM">
392
- <field name="Signal_Value">0</field>
393
- <value name="SIGNAL">
394
- <block type="variables_get" id="##B/vuCra*rZNgaLoi)*">
395
- <field name="VAR" id="oWLw:}:Aj~eUreDC%(r*">groupeTrompetteON</field>
396
- </block>
397
- </value>
398
- <next>
399
- <block type="wait_for" id="1O[{]Ra/qhg`|M:pbc@3">
400
- <field name="TIMES">5</field>
401
- <value name="SIGNAL">
402
- <block type="variables_get" id="*#NH1hn]^hB?.2CDfwG0">
403
- <field name="VAR" id="PUKhf-GjX1_kh99Hvl6J">tick</field>
404
- </block>
405
- </value>
406
- <next>
407
- <block type="emit_value" id="IoT~)Ey]FyHN|oo!PI|z">
408
- <field name="Signal_Value">0</field>
409
- <value name="SIGNAL">
410
- <block type="variables_get" id="%uY`XkqH@hCD=7j:xZ;e">
411
- <field name="VAR" id="=:iJtjY8?sZ~I}w3k)4F">groupeTrompetteOFF</field>
412
- </block>
413
- </value>
414
- <next>
415
- <block type="print_serveur" id="xu_n:kE7a%URSt6DJ!!p">
416
- <value name="TEXT">
417
- <block type="text" id="BS;/u1}S(g@jwac*)dEO">
418
- <field name="TEXT">Fin orchestration</field>
419
- </block>
420
- </value>
421
- </block>
422
- </next>
423
- </block>
424
- </next>
425
- </block>
426
- </next>
427
- </block>
428
- </next>
429
- </block>
430
- </next>
431
- </block>
432
- </next>
433
- </block>
434
- </next>
435
- </block>
436
- </next>
437
- </block>
438
- </next>
439
- </block>
440
- </statement>
441
- <next>
442
- <block type="every" id="1`O,#%EIE0n%jwK:,,Cg">
443
- <field name="TIMES">1</field>
444
- <value name="SIGNAL">
445
- <block type="variables_get" id="RFKm;]o%6x;X{:LT0Elp">
446
- <field name="VAR" id="PUKhf-GjX1_kh99Hvl6J">tick</field>
447
- </block>
448
- </value>
449
- <statement name="BODY">
450
- <block type="print_serveur" id="Bp*aSo=OQ?UkW;`DiSV#">
451
- <value name="TEXT">
452
- <block type="text" id="@F$X6L7]6mhe1dchGujH">
453
- <field name="TEXT">tick</field>
454
- </block>
455
- </value>
456
- </block>
457
- </statement>
458
- </block>
459
- </next>
460
- </block>
461
- </statement>
462
- </block>
463
- </statement>
464
- </block>
465
- </xml>
@@ -1,161 +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 debug1 = true;
7
- var debug = false;
8
-
9
- // A mettre dans Blockly
10
- var skini;
11
- function setSkini(skiniMaster){
12
- skini = skiniMaster;
13
- //console.log("******* orchestration: setSkini:", skini);
14
- }
15
- exports.setSkini = setSkini;
16
-
17
- /* mr.createSignal("violon1", 0);
18
- mr.createSignal("violon2", 0);
19
- mr.createSignal("violon3", 0);*/
20
- mr.createSignal("stopTankViolon", 0);
21
- mr.createSignal("stopTankPiano", 0);
22
- //mr.createSignal("start", 0);
23
-
24
- // A mettre dans Blockly
25
- mr.createSignal("tick", 0);
26
- mr.createSignal("DAWON", 0);
27
-
28
- // Debut de module
29
- tankViolon = [
30
- // Debut de abort
31
- mr._abort("stopTankViolon",1,
32
- [
33
- mr._atom( ()=> {console.log('Attend Percu1');} ),
34
- mr._await("Percu1", 1),
35
-
36
- mr._atom( ()=> {console.log('Attend Percu2');} ),
37
- mr._await("Percu2", 1),
38
-
39
- mr._atom( ()=> {console.log('Attend Percu3');} ),
40
- mr._await("Percu3", 1),
41
- ]
42
- ),
43
- mr._atom( ()=> {console.log('Tank Violon tué !');} ),
44
- ];
45
-
46
- // Debut de module
47
- tankPiano = [
48
- // Debut de abort
49
- mr._abort("stopTankPiano",1,
50
- [
51
- mr._atom( ()=> {console.log('Attend Percu4');} ),
52
- mr._await("Percu4", 1),
53
-
54
- mr._atom( ()=> {console.log('Attend Percu5');} ),
55
- mr._await("Percu5", 1),
56
-
57
- mr._atom( ()=> {console.log('Attend Percu6');} ),
58
- mr._await("Percu6", 1),
59
- ]
60
- ),
61
- mr._atom( ()=> {console.log('Tank Piano tué !');} ),
62
- ];
63
-
64
- var instructions = [
65
- // Debut de par
66
- mr._await("start", 1),
67
- mr._par(
68
- [
69
- // Debut de seq
70
- mr._seq(
71
- [
72
- mr._atom( ()=> {console.log('Début orchestration 1');} ),
73
- mr._emit("groupe1OUT", [true, 255]),
74
- mr._await("tick", 5),
75
- mr._atom( ()=> {console.log('Après 5 ticks');} ),
76
-
77
- // Debut de par
78
- mr._par(
79
- [
80
- // Debut de par
81
- mr._par(
82
- [
83
- // Debut de run module
84
- mr._run(tankViolon),
85
-
86
- // Debut de seq
87
- mr._seq(
88
- [
89
- mr._await("tick", 5),
90
- mr._atom( ()=> {console.log('Après 5 ticks violon');} ),
91
- mr._emit("stopTankViolon",0),
92
- ]
93
- ),
94
- ]
95
- ),
96
-
97
- // Debut de par
98
- mr._par(
99
- [
100
- // Debut de run module
101
- mr._run(tankPiano),
102
- // Debut de seq
103
- mr._seq(
104
- [
105
- mr._await("tick", 5),
106
- mr._atom( ()=> {console.log('Après 5 ticks piano');} ),
107
- mr._emit("stopTankPiano",0),
108
- ]
109
- ),
110
- ]
111
- ),
112
- ]
113
- ),
114
-
115
- mr._emit("groupe1OUT",[false, 255]),
116
- mr._emit("groupe2OUT",[true, 255]),
117
- mr._await("tick", 5),
118
- mr._emit("groupe2OUT",[false, 255]),
119
- mr._atom( ()=> {console.log('Fin orchestration');} ),
120
- ]
121
- ),
122
-
123
- // Debut de every
124
- mr._every("start",1,
125
- [
126
- mr._atom( ()=> {console.log('orchestration: start');} ),
127
- ]
128
- ),
129
- mr._every("tick",1,
130
- [
131
- mr._atom( ()=> {console.log('orchestration: tick');} ),
132
- ]
133
- ),
134
- ]
135
- ),
136
- ];
137
-
138
- // A mettre dans Blockly
139
- var prog = mr.createModule(instructions);
140
-
141
- // A mettre dans Blockly
142
- function runProg(){
143
- // mr.printProgram(prog, false);
144
- mr.runProg(prog);
145
- //skini.test1("**** depuis orchestration");
146
- }
147
- exports.runProg = runProg;
148
-
149
- // A mettre dans Blockly
150
- function createListener(signal, action){
151
- if(debug) console.log("orchestration: createListener: ", signal);
152
- mr.createSignal(signal, 0);
153
- mr.addEventListener(signal, action);
154
- }
155
- exports.createListener = createListener;
156
-
157
- // A mettre dans Blockly
158
- function activateSignal(signal, val){
159
- mr.activateSignal(signal, val);
160
- }
161
- exports.activateSignal = activateSignal;