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.
- package/client/clientListe/clientListe.js +11 -0
- package/client/clientListe/clientListebundle.js +1755 -1909
- package/client/score/parto1.js +4 -1
- package/client/score/parto1bundle.js +45 -23
- package/doc/Doc Skini Node english.pdf +0 -0
- package/doc/Mode d'emploi Skini Node.pdf +0 -0
- package/doc/Tuto Skini.pdf +0 -0
- package/doc/quickstart.pdf +0 -0
- package/myReact/orchestrationHH.hh.js +27 -12
- package/myReact/orchestrationHH.mjs +170 -170
- package/myReact/orchestrationHH.mjs.map +1 -1
- package/package.json +11 -8
- package/pieces/tutos/demoAbleton.csv +21 -0
- package/pieces/tutos/demoAbleton.js +100 -0
- package/pieces/tutos/demoAbleton.xml +180 -0
- package/pieces/tutos/demoHH.js +99 -0
- package/pieces/tutos/demoHH.xml +184 -0
- package/pieces/tutos/demoHHwait.js +100 -0
- package/pieces/tutos/demoHHwait.xml +175 -0
- package/pieces/tutos/tuto.csv +10 -0
- package/pieces/tutos/tuto.csv.good +1 -0
- package/pieces/tutos/tuto1.js +105 -0
- package/pieces/tutos/tuto1.xml +147 -0
- package/pieces/tutos/tuto10.back.js +106 -0
- package/pieces/tutos/tuto10.js +107 -0
- package/pieces/tutos/tuto10.xml +199 -0
- package/pieces/tutos/tuto11.js +111 -0
- package/pieces/tutos/tuto11.xml +124 -0
- package/pieces/tutos/tuto12.js +91 -0
- package/pieces/tutos/tuto12.xml +258 -0
- package/pieces/tutos/tuto2.back.js +106 -0
- package/pieces/tutos/tuto2.js +95 -0
- package/pieces/tutos/tuto2.xml +94 -0
- package/pieces/tutos/tuto3-2.js +105 -0
- package/pieces/tutos/tuto3-2.xml +96 -0
- package/pieces/tutos/tuto3.js +97 -0
- package/pieces/tutos/tuto3.xml +49 -0
- package/pieces/tutos/tuto4.js +107 -0
- package/pieces/tutos/tuto4.xml +106 -0
- package/pieces/tutos/tuto5.js +109 -0
- package/pieces/tutos/tuto5.xml +42 -0
- package/pieces/tutos/tuto6.js +105 -0
- package/pieces/tutos/tuto6.xml +26 -0
- package/pieces/tutos/tuto7.js +107 -0
- package/pieces/tutos/tuto7.xml +65 -0
- package/pieces/tutos/tuto8.js +105 -0
- package/pieces/tutos/tuto8.xml +76 -0
- package/pieces/tutos/tuto9.js +107 -0
- package/pieces/tutos/tuto9.xml +90 -0
- package/pieces/tutos/tutoAwait.js +111 -0
- package/pieces/tutos/tutoAwait.xml +171 -0
- package/pieces/tutos/tutoDoubleEmission.js +93 -0
- package/pieces/tutos/tutoDoubleEmission.xml +65 -0
- package/pieces/tutos/tutoESP32.js +104 -0
- package/pieces/tutos/tutoESP32.xml +246 -0
- package/pieces/tutos/tutoGame.js +126 -0
- package/pieces/tutos/tutoGame.xml +109 -0
- package/pieces/tutos/tutoGroups1.js +111 -0
- package/pieces/tutos/tutoGroups1.xml +137 -0
- package/pieces/tutos/tutoGroups2.js +97 -0
- package/pieces/tutos/tutoGroups2.xml +103 -0
- package/pieces/tutos/tutoGroups3.js +111 -0
- package/pieces/tutos/tutoGroups3.xml +128 -0
- package/pieces/tutos/tutoGroups4.js +111 -0
- package/pieces/tutos/tutoGroups4.xml +84 -0
- package/pieces/tutos/tutoIZ.js +95 -0
- package/pieces/tutos/tutoIZ.xml +135 -0
- package/pieces/tutos/tutoIf.js +111 -0
- package/pieces/tutos/tutoIf.xml +126 -0
- package/pieces/tutos/tutoMidi.js +126 -0
- package/pieces/tutos/tutoMidi.xml +62 -0
- package/pieces/tutos/tutoOS.js +121 -0
- package/pieces/tutos/tutoOSC.js +109 -0
- package/pieces/tutos/tutoOSC.xml +223 -0
- package/pieces/tutos/tutoOSCJonathan.js +94 -0
- package/pieces/tutos/tutoOSCJonathan.xml +312 -0
- package/pieces/tutos/tutoPatternInGroup.js +109 -0
- package/pieces/tutos/tutoPatternInGroup.xml +116 -0
- package/pieces/tutos/tutoRandomBlock.js +129 -0
- package/pieces/tutos/tutoRandomBlock.xml +194 -0
- package/pieces/tutos/tutoSuspend.js +107 -0
- package/pieces/tutos/tutoSuspend.xml +139 -0
- package/pieces/tutos/tutoSustain.js +107 -0
- package/pieces/tutos/tutoSustain.xml +109 -0
- package/pieces/tutos/tutoTank.csv +9 -0
- package/pieces/tutos/tutoTank.js +100 -0
- package/pieces/tutos/tutoTank.xml +326 -0
- package/pieces/tutos/tutoTestAll.csv +11 -0
- package/pieces/tutos/tutoTestAll.js +101 -0
- package/pieces/tutos/tutoTestAll.xml +859 -0
- package/serveur/skiniParametres.js +104 -11
- package/blocklySkini/archive/blocklyControleur.js +0 -87
- package/blocklySkini/archive/blocklySkini.js +0 -84
- package/blocklySkini/archive/blocklyhop.js +0 -75
- package/blocklySkini/archive/clientControleurBlocly.js +0 -170
- package/blocklySkini/archive/index.html +0 -76
- package/blocklySkini/archive/testHHsuspend.txt +0 -89
- package/blocklySkini/archive/testHHtrap.txt +0 -262
- package/blocklySkini/archive/testOrchestration.txt +0 -177
- package/blocklySkini/archive/testOrchestration.xml +0 -447
- package/blocklySkini/archive/testOrchestration2.xml +0 -456
- package/blocklySkini/scripts/hiphop_blocks.old.js +0 -3010
- package/blocklySkini/scripts/hiphop_blocks11-2025.js +0 -6104
- package/myReact/archive/Nodeemitvaluedlocal1.hh.js +0 -52
- package/myReact/archive/abort-parNode.js +0 -79
- package/myReact/archive/abroNode.js +0 -169
- package/myReact/archive/abroNode2.js +0 -80
- package/myReact/archive/atom.compile.hh.js +0 -52
- package/myReact/archive/await-countNode.js +0 -67
- package/myReact/archive/await-nowvalNode.js +0 -44
- package/myReact/archive/callHH.js +0 -96
- package/myReact/archive/emit-if2.hh.compiled.js +0 -113
- package/myReact/archive/every1Node.js +0 -35
- package/myReact/archive/if-runNode.js +0 -74
- package/myReact/archive/if1Node.js +0 -43
- package/myReact/archive/makeawait.js +0 -0
- package/myReact/archive/myReact.old.js +0 -684
- package/myReact/archive/orchestration.js +0 -281
- package/myReact/archive/orchestration1.js +0 -132
- package/myReact/archive/orchestration1.xml +0 -465
- package/myReact/archive/orchestration2.js +0 -161
- package/myReact/archive/orchestrationHH.mano.js +0 -280
- package/myReact/archive/orchestrationHHTest.js +0 -428
- package/myReact/archive/orchestrationHHTest.xml +0 -234
- package/myReact/archive/orchestrationHHTestRun.js +0 -104
- package/myReact/archive/orchestrationHHTestRun.xml +0 -34
- package/myReact/archive/orchestrationTest0.js +0 -178
- package/myReact/archive/orchestrationTest1.js +0 -181
- package/myReact/archive/orchestrationTest2.js +0 -281
- package/myReact/archive/run3pointsNode.js +0 -59
- package/myReact/archive/runNode.js +0 -123
- package/myReact/archive/runNode2.js +0 -91
- package/myReact/archive/testAwait1.js +0 -141
- package/myReact/archive/testAwait1.xml +0 -86
- package/myReact/archive/testEvery1.js +0 -122
- package/myReact/archive/testEvery1.xml +0 -79
- package/myReact/archive/testHH1.js +0 -135
- package/myReact/archive/testHH1.xml +0 -86
- package/myReact/archive/testHH1revu.js +0 -104
- package/myReact/archive/testHH2.js +0 -122
- package/myReact/archive/testHH2.xml +0 -79
- package/myReact/archive/testHH3.js +0 -130
- package/myReact/archive/testHH3.xml +0 -86
- package/myReact/archive/testHHabort.js +0 -121
- package/myReact/archive/testHHabort.xml +0 -83
- package/myReact/archive/testMakeawait.js +0 -202
- package/myReact/archive/testRun1.js +0 -168
- package/myReact/archive/testRun1.xml +0 -142
- package/myReact/archive/titi.js +0 -28
- package/myReact/archive/titi.xml +0 -110
- package/myReact/archive/toto.js +0 -73
- package/myReact/archive/toto.xml +0 -198
- package/myReact/archive/trap-await-parallelNode.js +0 -123
- package/myReact/inutiles/hiver2022.xml +0 -804
- package/myReact/inutiles/hopeNode.xml +0 -459
- package/myReact/inutiles/mars2022.xml +0 -871
- package/myReact/inutiles/mystique1.xml +0 -318
- package/myReact/inutiles/mystiqueOSC.xml +0 -277
- package/myReact/inutiles/opus5Node.xml +0 -1271
- package/myReact/inutiles/opus5NodeLinux.xml +0 -1241
- package/myReact/inutiles/orchestrationHH.xml +0 -541
- package/myReact/inutiles/orchestrationHH2.xml +0 -547
- package/myReact/inutiles/testHH.xml +0 -95
- package/myReact/inutiles/trouveLaPercuTenor.xml +0 -349
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var hh = require("../hiphop/hiphop.js");
|
|
4
|
-
var par = require('../serveur/skiniParametres');
|
|
5
|
-
var gcs = require("../serveur/autocontroleur/groupeClientsSons.js");
|
|
6
|
-
|
|
7
|
-
var debug = false;
|
|
8
|
-
var debug1 = true;
|
|
9
|
-
|
|
10
|
-
//var signals;
|
|
11
|
-
|
|
12
|
-
// Création des signaux OUT de contrôle de la matrice des possibles
|
|
13
|
-
// Ici et immédiatement.
|
|
14
|
-
var signals = [];
|
|
15
|
-
|
|
16
|
-
for (var i=0; i < par.groupesDesSons.length; i++) {
|
|
17
|
-
var signame = par.groupesDesSons[i][0] + "OUT";
|
|
18
|
-
|
|
19
|
-
var signal = hh.SIGNAL({
|
|
20
|
-
"%location":{},
|
|
21
|
-
"direction":"OUT",
|
|
22
|
-
"name":signame,
|
|
23
|
-
"init_func":function (){return [false, -1];}
|
|
24
|
-
});
|
|
25
|
-
signals.push(signal);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Création des signaux IN de sélection de patterns
|
|
29
|
-
for (var i=0; i < par.groupesDesSons.length; i++) {
|
|
30
|
-
var signame = par.groupesDesSons[i][0] + "IN";
|
|
31
|
-
|
|
32
|
-
var signal = hh.SIGNAL({
|
|
33
|
-
"%location":{},
|
|
34
|
-
"direction":"IN",
|
|
35
|
-
"name":signame
|
|
36
|
-
});
|
|
37
|
-
signals.push(signal);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function setSignals(){
|
|
41
|
-
if(debug) console.log("orchestrationHH: setSignals: ", signals);
|
|
42
|
-
var machine = new hh.ReactiveMachine( orchestration );
|
|
43
|
-
return machine;
|
|
44
|
-
}
|
|
45
|
-
exports.setSignals = setSignals;
|
|
46
|
-
|
|
47
|
-
var trajet = hh.MODULE(
|
|
48
|
-
{
|
|
49
|
-
"id":"trajet",
|
|
50
|
-
"%location":{},
|
|
51
|
-
"%tag":"module"
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"start"}),
|
|
55
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"stop"}),
|
|
56
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"tick"}),
|
|
57
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"DAWON"}),
|
|
58
|
-
|
|
59
|
-
signals,
|
|
60
|
-
|
|
61
|
-
hh.ATOM(
|
|
62
|
-
{
|
|
63
|
-
"%location":{},
|
|
64
|
-
"%tag":"node",
|
|
65
|
-
"apply":function () {console.log('Debut trajet');}
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
|
|
69
|
-
hh.SEQUENCE(
|
|
70
|
-
{
|
|
71
|
-
"%location":{},
|
|
72
|
-
"%tag":"seq"
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
hh.ATOM(
|
|
76
|
-
{
|
|
77
|
-
"%location":{},
|
|
78
|
-
"%tag":"node",
|
|
79
|
-
"apply":function () {console.log('Sequence');}
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
|
|
83
|
-
// await start
|
|
84
|
-
hh.AWAIT(
|
|
85
|
-
{
|
|
86
|
-
"%location":{},
|
|
87
|
-
"%tag":"await",
|
|
88
|
-
"immediate":false,
|
|
89
|
-
"apply":function (){
|
|
90
|
-
return ((() => {
|
|
91
|
-
const start =this["start"];
|
|
92
|
-
return start.now;
|
|
93
|
-
})());},
|
|
94
|
-
//"countapply":function (){return 3;}
|
|
95
|
-
}
|
|
96
|
-
,
|
|
97
|
-
hh.SIGACCESS({"signame":"start","pre":false,"val":false,"cnt":false})
|
|
98
|
-
),
|
|
99
|
-
|
|
100
|
-
// affiche après start
|
|
101
|
-
hh.ATOM(
|
|
102
|
-
{
|
|
103
|
-
"%location":{},
|
|
104
|
-
"%tag":"node",
|
|
105
|
-
"apply":function () {console.log('Après start 111');}
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
|
|
109
|
-
hh.EMIT(
|
|
110
|
-
{
|
|
111
|
-
"%location":{},
|
|
112
|
-
"%tag":"emit",
|
|
113
|
-
"djembeOUT":"djembeOUT",
|
|
114
|
-
"apply":function (){
|
|
115
|
-
return ((() => {
|
|
116
|
-
const djembeOUT = this["djembeOUT"];
|
|
117
|
-
return [true, 255];
|
|
118
|
-
})());
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
hh.SIGACCESS({
|
|
122
|
-
"signame":"djembeOUT",
|
|
123
|
-
"pre":true,
|
|
124
|
-
"val":true,
|
|
125
|
-
"cnt":false
|
|
126
|
-
})
|
|
127
|
-
),
|
|
128
|
-
|
|
129
|
-
/* hh.AWAIT(
|
|
130
|
-
{
|
|
131
|
-
"%location":{},
|
|
132
|
-
"%tag":"await",
|
|
133
|
-
"immediate":true,
|
|
134
|
-
"apply":function (){
|
|
135
|
-
return ((() => {
|
|
136
|
-
const djembeOUT =this["djembeOUT"];
|
|
137
|
-
return djembeOUT.now;
|
|
138
|
-
})());},
|
|
139
|
-
//"countapply":function (){return 3;}
|
|
140
|
-
}
|
|
141
|
-
,
|
|
142
|
-
hh.SIGACCESS({"signame":"djembeOUT","pre":false,"val":false,"cnt":false})
|
|
143
|
-
),*/
|
|
144
|
-
|
|
145
|
-
hh.ATOM(
|
|
146
|
-
{
|
|
147
|
-
"%location":{},
|
|
148
|
-
"%tag":"node",
|
|
149
|
-
"apply":function () { gcs.informSelecteurOnMenuChange(255,"djembeOUT",true); }
|
|
150
|
-
}
|
|
151
|
-
),
|
|
152
|
-
|
|
153
|
-
hh.ATOM(
|
|
154
|
-
{
|
|
155
|
-
"%location":{},
|
|
156
|
-
"%tag":"node",
|
|
157
|
-
"apply":function () {console.log('Après emit'); }
|
|
158
|
-
}
|
|
159
|
-
),
|
|
160
|
-
|
|
161
|
-
hh.FORK(
|
|
162
|
-
{
|
|
163
|
-
"%location":{},
|
|
164
|
-
"%tag":"fork"
|
|
165
|
-
},
|
|
166
|
-
hh.SEQUENCE(
|
|
167
|
-
{
|
|
168
|
-
"%location":{},
|
|
169
|
-
"%tag":"fork"
|
|
170
|
-
},
|
|
171
|
-
hh.LOOPEACH(
|
|
172
|
-
{
|
|
173
|
-
"%location":{},
|
|
174
|
-
"%tag":"do/every",
|
|
175
|
-
"immediate":false,
|
|
176
|
-
"apply": function (){return ((() => {
|
|
177
|
-
const tick = this["tick"];
|
|
178
|
-
return tick.now;
|
|
179
|
-
})());},
|
|
180
|
-
//"countapply":function (){ return 2;}
|
|
181
|
-
},
|
|
182
|
-
hh.SIGACCESS({
|
|
183
|
-
"signame":"tick",
|
|
184
|
-
"pre":false,
|
|
185
|
-
"val":false,
|
|
186
|
-
"cnt":false
|
|
187
|
-
}),
|
|
188
|
-
hh.ATOM(
|
|
189
|
-
{
|
|
190
|
-
"%location":{},
|
|
191
|
-
"%tag":"node",
|
|
192
|
-
"apply":function () {console.log('Tick');}
|
|
193
|
-
}
|
|
194
|
-
),
|
|
195
|
-
),
|
|
196
|
-
),
|
|
197
|
-
hh.SEQUENCE(
|
|
198
|
-
{
|
|
199
|
-
"%location":{},
|
|
200
|
-
"%tag":"fork"
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
hh.EVERY(
|
|
204
|
-
{
|
|
205
|
-
"%location":{},
|
|
206
|
-
"%tag":"every",
|
|
207
|
-
"immediate":false,
|
|
208
|
-
"apply": function (){return ((() => {
|
|
209
|
-
const djembeIN = this["djembeIN"];
|
|
210
|
-
return djembeIN.now;
|
|
211
|
-
})());},
|
|
212
|
-
//"countapply":function (){ return 2;}
|
|
213
|
-
},
|
|
214
|
-
hh.SIGACCESS({
|
|
215
|
-
"signame":"djembeIN",
|
|
216
|
-
"pre":false,
|
|
217
|
-
"val":false,
|
|
218
|
-
"cnt":false
|
|
219
|
-
}),
|
|
220
|
-
hh.ATOM(
|
|
221
|
-
{
|
|
222
|
-
"%location":{},
|
|
223
|
-
"%tag":"node",
|
|
224
|
-
"apply":function () {console.log('******************** djembeIN');}
|
|
225
|
-
}
|
|
226
|
-
),
|
|
227
|
-
),
|
|
228
|
-
)
|
|
229
|
-
)
|
|
230
|
-
)
|
|
231
|
-
);
|
|
232
|
-
|
|
233
|
-
var orchestration = hh.MODULE(
|
|
234
|
-
{"id":"Orchestration","%location":{},"%tag":"module"},
|
|
235
|
-
signals,
|
|
236
|
-
|
|
237
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"start"}),
|
|
238
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"stop"}),
|
|
239
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"tick"}),
|
|
240
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"DAWON"}),
|
|
241
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"setTimerDivision"}),
|
|
242
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"resetMatriceDesPossibles"}),
|
|
243
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"cleanQueues"}),
|
|
244
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"cleanOneQueue"}),
|
|
245
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"pauseQueues"}),
|
|
246
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"resumeQueues"}),
|
|
247
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"pauseOneQueue"}),
|
|
248
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"resumeOneQueue"}),
|
|
249
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"patternListLength"}),
|
|
250
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"cleanChoiceList"}),
|
|
251
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"setComputeScoreClass"}),
|
|
252
|
-
hh.SIGNAL({"%location":{},"direction":"OUT","name":"setComputeScorePolicy"}),
|
|
253
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"patternSignal"}),
|
|
254
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"controlFromVideo"}),
|
|
255
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"pulsation"}),
|
|
256
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"midiSignal"}),
|
|
257
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"emptyQueueSignal"}),
|
|
258
|
-
|
|
259
|
-
hh.ATOM(
|
|
260
|
-
{
|
|
261
|
-
"%location":{},
|
|
262
|
-
"%tag":"node",
|
|
263
|
-
"apply":function () {console.log('Module Orchestration');}
|
|
264
|
-
}
|
|
265
|
-
),
|
|
266
|
-
|
|
267
|
-
hh.RUN({
|
|
268
|
-
"%location":{},
|
|
269
|
-
"%tag":"run",
|
|
270
|
-
"module": hh.getModule("trajet", {}),
|
|
271
|
-
"start":"",
|
|
272
|
-
"stop":"",
|
|
273
|
-
"tick":"",
|
|
274
|
-
"DAWON":"",
|
|
275
|
-
"djembeOUT":"djembeOUT", // Pour utiliser les eventListener depuis un sous module il faut faire ce lien.
|
|
276
|
-
"djembeIN":"",
|
|
277
|
-
})
|
|
278
|
-
);
|
|
279
|
-
exports.orchestration = orchestration;
|
|
280
|
-
|
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
var tankTest, moduleTest, groupe1, groupe2, groupe3, halt, start, djembe, tick;
|
|
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
|
-
tankTest = hh.MODULE({"id":" tankTest ","%location":{},"%tag":"module"},
|
|
64
|
-
hh.SIGNAL({"%location":{},"direction":"IN", "name":"groupe1IN"}),
|
|
65
|
-
hh.SIGNAL({"%location":{},"direction":"IN", "name":"groupe2IN"}),
|
|
66
|
-
hh.SIGNAL({"%location":{},"direction":"IN", "name":"groupe3IN"}),
|
|
67
|
-
hh.SIGNAL({"%location":{},"direction":"IN", "name":"stopReservoir"}),
|
|
68
|
-
hh.TRAP(
|
|
69
|
-
{
|
|
70
|
-
"EXIT":"EXIT",
|
|
71
|
-
"%location":{},
|
|
72
|
-
"%tag":"EXIT"
|
|
73
|
-
},
|
|
74
|
-
hh.ABORT({
|
|
75
|
-
"%location":{},
|
|
76
|
-
"%tag":"abort",
|
|
77
|
-
"immediate":false,
|
|
78
|
-
"apply":function (){return ((() => {
|
|
79
|
-
const stopReservoir = this["stopReservoir"];
|
|
80
|
-
return stopReservoir.now;
|
|
81
|
-
})());
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
hh.SIGACCESS({
|
|
85
|
-
"signame":"stopReservoir",
|
|
86
|
-
"pre":false,
|
|
87
|
-
"val":false,
|
|
88
|
-
"cnt":false
|
|
89
|
-
}),
|
|
90
|
-
hh.ATOM(
|
|
91
|
-
{
|
|
92
|
-
"%location":{},
|
|
93
|
-
"%tag":"node",
|
|
94
|
-
"apply":function () {
|
|
95
|
-
console.log("--- MAKE RESERVOIR:", groupe1 );
|
|
96
|
-
var msg = {
|
|
97
|
-
type: 'startTank',
|
|
98
|
-
value: "groupe1"
|
|
99
|
-
}
|
|
100
|
-
serveur.broadcast(JSON.stringify(msg));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
hh.EMIT(
|
|
105
|
-
{
|
|
106
|
-
"%location":{},
|
|
107
|
-
"%tag":"emit",
|
|
108
|
-
"groupe1OUT":"groupe1OUT",
|
|
109
|
-
"apply":function (){
|
|
110
|
-
return ((() => {
|
|
111
|
-
const groupe1 = this["groupe1OUT"];
|
|
112
|
-
return [true, 255 ];
|
|
113
|
-
})());
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
hh.SIGACCESS({
|
|
117
|
-
"signame":"groupe1OUT",
|
|
118
|
-
"pre":true,
|
|
119
|
-
"val":true,
|
|
120
|
-
"cnt":false
|
|
121
|
-
})
|
|
122
|
-
), // Fin emit groupe1OUT true,
|
|
123
|
-
hh.EMIT(
|
|
124
|
-
{
|
|
125
|
-
"%location":{},
|
|
126
|
-
"%tag":"emit",
|
|
127
|
-
"groupe2OUT":"groupe2OUT",
|
|
128
|
-
"apply":function (){
|
|
129
|
-
return ((() => {
|
|
130
|
-
const groupe2 = this["groupe2OUT"];
|
|
131
|
-
return [true, 255 ];
|
|
132
|
-
})());
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
hh.SIGACCESS({
|
|
136
|
-
"signame":"groupe2OUT",
|
|
137
|
-
"pre":true,
|
|
138
|
-
"val":true,
|
|
139
|
-
"cnt":false
|
|
140
|
-
})
|
|
141
|
-
), // Fin emit groupe2OUT true,
|
|
142
|
-
hh.EMIT(
|
|
143
|
-
{
|
|
144
|
-
"%location":{},
|
|
145
|
-
"%tag":"emit",
|
|
146
|
-
"groupe3OUT":"groupe3OUT",
|
|
147
|
-
"apply":function (){
|
|
148
|
-
return ((() => {
|
|
149
|
-
const groupe3 = this["groupe3OUT"];
|
|
150
|
-
return [true, 255 ];
|
|
151
|
-
})());
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
hh.SIGACCESS({
|
|
155
|
-
"signame":"groupe3OUT",
|
|
156
|
-
"pre":true,
|
|
157
|
-
"val":true,
|
|
158
|
-
"cnt":false
|
|
159
|
-
})
|
|
160
|
-
), // Fin emit groupe3OUT true
|
|
161
|
-
hh.ATOM(
|
|
162
|
-
{
|
|
163
|
-
"%location":{},
|
|
164
|
-
"%tag":"node",
|
|
165
|
-
"apply":function () {
|
|
166
|
-
gcs.informSelecteurOnMenuChange(255 , "groupe1", true);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
|
|
171
|
-
hh.FORK( // debut du fork de makeAwait avec en premiere position:groupe1
|
|
172
|
-
{
|
|
173
|
-
"%location":{},
|
|
174
|
-
"%tag":"fork"
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
hh.SEQUENCE( // Debut sequence pour groupe1
|
|
178
|
-
{
|
|
179
|
-
"%location":{},
|
|
180
|
-
"%tag":"seq"
|
|
181
|
-
},
|
|
182
|
-
hh.AWAIT(
|
|
183
|
-
{
|
|
184
|
-
"%location":{},
|
|
185
|
-
"%tag":"await",
|
|
186
|
-
"immediate":false,
|
|
187
|
-
"apply":function (){
|
|
188
|
-
return ((() => {
|
|
189
|
-
const groupe1IN =this["groupe1IN"];
|
|
190
|
-
return groupe1IN.now;
|
|
191
|
-
})());},
|
|
192
|
-
},
|
|
193
|
-
hh.SIGACCESS({"signame":"groupe1IN",
|
|
194
|
-
"pre":false,
|
|
195
|
-
"val":false,
|
|
196
|
-
"cnt":false})
|
|
197
|
-
), // Fin await groupe1IN
|
|
198
|
-
hh.EMIT(
|
|
199
|
-
{
|
|
200
|
-
"%location":{},
|
|
201
|
-
"%tag":"emit",
|
|
202
|
-
"groupe1OUT" : "groupe1OUT",
|
|
203
|
-
"apply":function (){
|
|
204
|
-
return ((() => {
|
|
205
|
-
const groupe1OUT = this["groupe1OUT"];
|
|
206
|
-
return [true, 255];
|
|
207
|
-
})());
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
hh.SIGACCESS({
|
|
211
|
-
"signame":"groupe1OUT",
|
|
212
|
-
"pre":true,
|
|
213
|
-
"val":true,
|
|
214
|
-
"cnt":false
|
|
215
|
-
}),
|
|
216
|
-
), // Fin emit groupe1OUT true
|
|
217
|
-
) // Fin sequence pour groupe1
|
|
218
|
-
,
|
|
219
|
-
hh.SEQUENCE( // Debut sequence pour groupe2
|
|
220
|
-
{
|
|
221
|
-
"%location":{},
|
|
222
|
-
"%tag":"seq"
|
|
223
|
-
},
|
|
224
|
-
hh.AWAIT(
|
|
225
|
-
{
|
|
226
|
-
"%location":{},
|
|
227
|
-
"%tag":"await",
|
|
228
|
-
"immediate":false,
|
|
229
|
-
"apply":function (){
|
|
230
|
-
return ((() => {
|
|
231
|
-
const groupe2IN =this["groupe2IN"];
|
|
232
|
-
return groupe2IN.now;
|
|
233
|
-
})());},
|
|
234
|
-
},
|
|
235
|
-
hh.SIGACCESS({"signame":"groupe2IN",
|
|
236
|
-
"pre":false,
|
|
237
|
-
"val":false,
|
|
238
|
-
"cnt":false})
|
|
239
|
-
), // Fin await groupe2IN
|
|
240
|
-
hh.EMIT(
|
|
241
|
-
{
|
|
242
|
-
"%location":{},
|
|
243
|
-
"%tag":"emit",
|
|
244
|
-
"groupe2OUT" : "groupe2OUT",
|
|
245
|
-
"apply":function (){
|
|
246
|
-
return ((() => {
|
|
247
|
-
const groupe2OUT = this["groupe2OUT"];
|
|
248
|
-
return [true, 255];
|
|
249
|
-
})());
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
hh.SIGACCESS({
|
|
253
|
-
"signame":"groupe2OUT",
|
|
254
|
-
"pre":true,
|
|
255
|
-
"val":true,
|
|
256
|
-
"cnt":false
|
|
257
|
-
}),
|
|
258
|
-
), // Fin emit groupe2OUT true
|
|
259
|
-
) // Fin sequence pour groupe2
|
|
260
|
-
,
|
|
261
|
-
hh.SEQUENCE( // Debut sequence pour groupe3
|
|
262
|
-
{
|
|
263
|
-
"%location":{},
|
|
264
|
-
"%tag":"seq"
|
|
265
|
-
},
|
|
266
|
-
hh.AWAIT(
|
|
267
|
-
{
|
|
268
|
-
"%location":{},
|
|
269
|
-
"%tag":"await",
|
|
270
|
-
"immediate":false,
|
|
271
|
-
"apply":function (){
|
|
272
|
-
return ((() => {
|
|
273
|
-
const groupe3IN =this["groupe3IN"];
|
|
274
|
-
return groupe3IN.now;
|
|
275
|
-
})());},
|
|
276
|
-
},
|
|
277
|
-
hh.SIGACCESS({"signame":"groupe3IN",
|
|
278
|
-
"pre":false,
|
|
279
|
-
"val":false,
|
|
280
|
-
"cnt":false})
|
|
281
|
-
), // Fin await groupe3IN
|
|
282
|
-
hh.EMIT(
|
|
283
|
-
{
|
|
284
|
-
"%location":{},
|
|
285
|
-
"%tag":"emit",
|
|
286
|
-
"groupe3OUT" : "groupe3OUT",
|
|
287
|
-
"apply":function (){
|
|
288
|
-
return ((() => {
|
|
289
|
-
const groupe3OUT = this["groupe3OUT"];
|
|
290
|
-
return [true, 255];
|
|
291
|
-
})());
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
hh.SIGACCESS({
|
|
295
|
-
"signame":"groupe3OUT",
|
|
296
|
-
"pre":true,
|
|
297
|
-
"val":true,
|
|
298
|
-
"cnt":false
|
|
299
|
-
}),
|
|
300
|
-
), // Fin emit groupe3OUT true
|
|
301
|
-
) // Fin sequence pour groupe3
|
|
302
|
-
), // Fin fork de make await avec en premiere position:groupe1
|
|
303
|
-
hh.EXIT(
|
|
304
|
-
{
|
|
305
|
-
"EXIT":"EXIT",
|
|
306
|
-
"%location":{},
|
|
307
|
-
"%tag":"break"
|
|
308
|
-
})
|
|
309
|
-
) // Fin Abort
|
|
310
|
-
), // Fin Trap
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
hh.EMIT(
|
|
314
|
-
{
|
|
315
|
-
"%location":{},
|
|
316
|
-
"%tag":"emit",
|
|
317
|
-
"groupe1OUT":"groupe1OUT",
|
|
318
|
-
"apply":function (){
|
|
319
|
-
return ((() => {
|
|
320
|
-
const groupe1 = this["groupe1OUT"];
|
|
321
|
-
return [false, 255 ];
|
|
322
|
-
})());
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
hh.SIGACCESS({
|
|
326
|
-
"signame":"groupe1OUT",
|
|
327
|
-
"pre":true,
|
|
328
|
-
"val":true,
|
|
329
|
-
"cnt":false
|
|
330
|
-
})
|
|
331
|
-
), // Fin emit groupe1OUT false,
|
|
332
|
-
hh.EMIT(
|
|
333
|
-
{
|
|
334
|
-
"%location":{},
|
|
335
|
-
"%tag":"emit",
|
|
336
|
-
"groupe2OUT":"groupe2OUT",
|
|
337
|
-
"apply":function (){
|
|
338
|
-
return ((() => {
|
|
339
|
-
const groupe2 = this["groupe2OUT"];
|
|
340
|
-
return [false, 255 ];
|
|
341
|
-
})());
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
hh.SIGACCESS({
|
|
345
|
-
"signame":"groupe2OUT",
|
|
346
|
-
"pre":true,
|
|
347
|
-
"val":true,
|
|
348
|
-
"cnt":false
|
|
349
|
-
})
|
|
350
|
-
), // Fin emit groupe2OUT false,
|
|
351
|
-
hh.EMIT(
|
|
352
|
-
{
|
|
353
|
-
"%location":{},
|
|
354
|
-
"%tag":"emit",
|
|
355
|
-
"groupe3OUT":"groupe3OUT",
|
|
356
|
-
"apply":function (){
|
|
357
|
-
return ((() => {
|
|
358
|
-
const groupe3 = this["groupe3OUT"];
|
|
359
|
-
return [false, 255 ];
|
|
360
|
-
})());
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
hh.SIGACCESS({
|
|
364
|
-
"signame":"groupe3OUT",
|
|
365
|
-
"pre":true,
|
|
366
|
-
"val":true,
|
|
367
|
-
"cnt":false
|
|
368
|
-
})
|
|
369
|
-
), // Fin emit groupe3OUT false
|
|
370
|
-
hh.ATOM(
|
|
371
|
-
{
|
|
372
|
-
"%location":{},
|
|
373
|
-
"%tag":"node",
|
|
374
|
-
"apply":function () {
|
|
375
|
-
gcs.informSelecteurOnMenuChange(255 , "groupe1", false);
|
|
376
|
-
console.log("--- ABORT RESERVOIR:", groupe1);
|
|
377
|
-
var msg = {
|
|
378
|
-
type: 'killTank',
|
|
379
|
-
value: "groupe1"
|
|
380
|
-
}
|
|
381
|
-
serveur.broadcast(JSON.stringify(msg));
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
) // Fin atom,
|
|
385
|
-
); // Fin module
|
|
386
|
-
|
|
387
|
-
moduleTest = hh.MODULE({"id":"moduleTest","%location":{},"%tag":"module"},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
hh.ATOM(
|
|
391
|
-
{
|
|
392
|
-
"%location":{},
|
|
393
|
-
"%tag":"node",
|
|
394
|
-
"apply":function () {console.log('Module de Test');}
|
|
395
|
-
}
|
|
396
|
-
),
|
|
397
|
-
|
|
398
|
-
);
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
var orchestration = hh.MODULE(
|
|
402
|
-
{"id":"Orchestration","%location":{},"%tag":"module"},
|
|
403
|
-
signals,
|
|
404
|
-
|
|
405
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"start"}),
|
|
406
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"halt"}),
|
|
407
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"tick"}),
|
|
408
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"DAWON"}),
|
|
409
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"patternSignal"}),
|
|
410
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"controlFromVideo"}),
|
|
411
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"pulsation"}),
|
|
412
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"midiSignal"}),
|
|
413
|
-
hh.SIGNAL({"%location":{},"direction":"IN","name":"emptyQueueSignal"}),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
hh.RUN({
|
|
419
|
-
"%location":{},
|
|
420
|
-
"%tag":"run",
|
|
421
|
-
"module": hh.getModule( "moduleTest", {}),
|
|
422
|
-
"''":"",
|
|
423
|
-
|
|
424
|
-
}),
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
);
|
|
428
|
-
exports.orchestration = orchestration;
|