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.
- package/blocklySkini/scripts/hiphop_blocks.js +3991 -6104
- package/blocklySkini/scripts/main2.js +4 -4
- package/client/clientListe/clientListe.js +11 -0
- package/client/clientListe/clientListebundle.js +1755 -1909
- package/client/configurateur/configReact.js +1 -1
- package/client/configurateur/configReactbundle.js +16 -10
- package/client/configurateur/src/configReact.js +1 -1
- package/client/parametrage/paramReact.js +1 -1
- package/client/parametrage/paramReactbundle.js +6 -5
- package/client/parametrage/src/paramReact.js +2 -2
- package/client/score/parto1.js +4 -1
- package/client/score/parto1bundle.js +45 -23
- package/client/simulateurListe/simulateurFork.mjs +1 -1
- package/client/simulateurListe/simulateurListe.js +3 -3
- 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 +2024 -0
- package/myReact/orchestrationHH.mjs +262 -420
- package/myReact/orchestrationHH.mjs.map +1 -1
- package/package.json +19 -11
- 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/OSCandMidi.mjs +7 -5
- package/serveur/controleDAW.mjs +3 -2
- package/serveur/defaultSkiniParametres.js +20 -13
- package/serveur/groupeClientsSons.mjs +10 -5
- package/serveur/ipConfig.json +2 -2
- package/serveur/midimix.mjs +13 -13
- package/serveur/saveParam.mjs +4 -15
- package/serveur/skiniParametres.js +108 -26
- package/serveur/utilsHHSkini.hh.js +64 -64
- package/serveur/websocketServer.mjs +2090 -2052
- package/serveur/workerInterfaceZ.mjs +4 -7
- 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/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 -51
- 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,121 +0,0 @@
|
|
|
1
|
-
var toto, titi;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
hh = require("../hiphop/hiphop.js");
|
|
6
|
-
|
|
7
|
-
prg = hh.MACHINE({"id":"prg","%location":{},"%tag":"machine"},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
hh.SIGNAL({
|
|
11
|
-
"%location":{},
|
|
12
|
-
"direction":"IN",
|
|
13
|
-
"name":"toto"
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
hh.SIGNAL({
|
|
17
|
-
"%location":{},
|
|
18
|
-
"direction":"OUT",
|
|
19
|
-
"name":"titi"
|
|
20
|
-
}),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hh.FORK(
|
|
25
|
-
{
|
|
26
|
-
"%location":{},
|
|
27
|
-
"%tag":"fork"
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
hh.SEQUENCE(
|
|
32
|
-
{
|
|
33
|
-
"%location":{},
|
|
34
|
-
"%tag":"seq"
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
hh.ATOM(
|
|
39
|
-
{
|
|
40
|
-
"%location":{},
|
|
41
|
-
"%tag":"node",
|
|
42
|
-
"apply":function () {console.log('message serveur');}
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
|
|
46
|
-
hh.EMIT(
|
|
47
|
-
{
|
|
48
|
-
"%location":{},
|
|
49
|
-
"%tag":"emit",
|
|
50
|
-
"toto":"toto",
|
|
51
|
-
"apply":function (){
|
|
52
|
-
return ((() => {
|
|
53
|
-
//const toto=this["toto"];
|
|
54
|
-
return 25;
|
|
55
|
-
})());
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
hh.SIGACCESS({
|
|
59
|
-
"signame":"toto",
|
|
60
|
-
"pre":true,
|
|
61
|
-
"val":true,
|
|
62
|
-
"cnt":false
|
|
63
|
-
})
|
|
64
|
-
),
|
|
65
|
-
|
|
66
|
-
),
|
|
67
|
-
|
|
68
|
-
hh.SEQUENCE(
|
|
69
|
-
{
|
|
70
|
-
"%location":{},
|
|
71
|
-
"%tag":"seq"
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
hh.ABORT(
|
|
77
|
-
{
|
|
78
|
-
"%location":{abort: toto},
|
|
79
|
-
"%tag":"abort",
|
|
80
|
-
"immediate":false,
|
|
81
|
-
"apply": function (){return ((() => {
|
|
82
|
-
const toto=this["toto"];
|
|
83
|
-
return toto.now;
|
|
84
|
-
})());},
|
|
85
|
-
"countapply":function (){ return 2;}
|
|
86
|
-
},
|
|
87
|
-
hh.SIGACCESS({
|
|
88
|
-
"signame":"toto",
|
|
89
|
-
"pre":false,
|
|
90
|
-
"val":false,
|
|
91
|
-
"cnt":false
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
hh.LOOP(
|
|
95
|
-
{
|
|
96
|
-
"%location":{loop: 1},
|
|
97
|
-
"%tag":"loop"
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
hh.ATOM(
|
|
101
|
-
{
|
|
102
|
-
"%location":{},
|
|
103
|
-
"%tag":"node",
|
|
104
|
-
"apply":function () {console.log('message serveur 2');}
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
|
|
108
|
-
),
|
|
109
|
-
|
|
110
|
-
),
|
|
111
|
-
|
|
112
|
-
),
|
|
113
|
-
|
|
114
|
-
),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
module.exports=prg;
|
|
120
|
-
|
|
121
|
-
prg.react();
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<xml xmlns="https://developers.google.com/blockly/xml">
|
|
2
|
-
<variables>
|
|
3
|
-
<variable id="0^7$5-;a/K@2Cz|KaQ9C">toto</variable>
|
|
4
|
-
<variable id="(2c$M@^y9[abd!HliHvm">titi</variable>
|
|
5
|
-
</variables>
|
|
6
|
-
<block type="hh_orchestration" id="Km0C#~!Ug+_Sl82?#rxU" x="120" y="45">
|
|
7
|
-
<field name="trajet">1</field>
|
|
8
|
-
<statement name="SIGNALS">
|
|
9
|
-
<block type="hh_declare_signal" id="|g6v*h`mK5j7}d`N|/zA">
|
|
10
|
-
<field name="TYPE">IN</field>
|
|
11
|
-
<value name="signal">
|
|
12
|
-
<block type="variables_get" id="cq}f$~5{%h;w#?f6fHf{">
|
|
13
|
-
<field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
|
|
14
|
-
</block>
|
|
15
|
-
</value>
|
|
16
|
-
<next>
|
|
17
|
-
<block type="hh_declare_signal" id="lF#OIVFyRv~lXo,j?6zm">
|
|
18
|
-
<field name="TYPE">OUT</field>
|
|
19
|
-
<value name="signal">
|
|
20
|
-
<block type="variables_get" id="bDqv}Hh=]KTEs04hrs{,">
|
|
21
|
-
<field name="VAR" id="(2c$M@^y9[abd!HliHvm">titi</field>
|
|
22
|
-
</block>
|
|
23
|
-
</value>
|
|
24
|
-
</block>
|
|
25
|
-
</next>
|
|
26
|
-
</block>
|
|
27
|
-
</statement>
|
|
28
|
-
<statement name="BODY">
|
|
29
|
-
<block type="hh_fork" id="Bdf=*ZZ7az0Z`Twy3=pl">
|
|
30
|
-
<statement name="BODY">
|
|
31
|
-
<block type="hh_sequence" id="p;LrV!,jk+6SDBU=}rJo">
|
|
32
|
-
<statement name="BODY">
|
|
33
|
-
<block type="hh_print_serveur" id="XAKSu:fXW][BW)PJ`/$R">
|
|
34
|
-
<value name="TEXT">
|
|
35
|
-
<block type="text" id=")}Ffbd8nF-Ol0tNX^sxV">
|
|
36
|
-
<field name="TEXT">message serveur</field>
|
|
37
|
-
</block>
|
|
38
|
-
</value>
|
|
39
|
-
<next>
|
|
40
|
-
<block type="hh_emit_value" id="pHuBchAQYvjaWmq}TsQ^">
|
|
41
|
-
<field name="Signal_Value">25</field>
|
|
42
|
-
<value name="SIGNAL">
|
|
43
|
-
<block type="variables_get" id="4]g),jsSwOyCBi5[%H?+">
|
|
44
|
-
<field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
|
|
45
|
-
</block>
|
|
46
|
-
</value>
|
|
47
|
-
</block>
|
|
48
|
-
</next>
|
|
49
|
-
</block>
|
|
50
|
-
</statement>
|
|
51
|
-
<next>
|
|
52
|
-
<block type="hh_sequence" id="T;+r=a(KM/lp${YpO_j*">
|
|
53
|
-
<statement name="BODY">
|
|
54
|
-
<block type="hh_abort" id="GXI_k^jdUynsAiSXg3$2">
|
|
55
|
-
<field name="TIMES">2</field>
|
|
56
|
-
<value name="SIGNAL">
|
|
57
|
-
<block type="variables_get" id="iji2*ks@;q(;X4X$5.L.">
|
|
58
|
-
<field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
|
|
59
|
-
</block>
|
|
60
|
-
</value>
|
|
61
|
-
<statement name="BODY">
|
|
62
|
-
<block type="hh_loop" id="3ikdXy^//Hp;wuA^fBz:">
|
|
63
|
-
<statement name="BODY">
|
|
64
|
-
<block type="hh_print_serveur" id="(=}lv]1iuuQZ#$bjyqXA">
|
|
65
|
-
<value name="TEXT">
|
|
66
|
-
<block type="text" id="RK_D:tH5QMu:[ssBu1gq">
|
|
67
|
-
<field name="TEXT">message serveur 2</field>
|
|
68
|
-
</block>
|
|
69
|
-
</value>
|
|
70
|
-
</block>
|
|
71
|
-
</statement>
|
|
72
|
-
</block>
|
|
73
|
-
</statement>
|
|
74
|
-
</block>
|
|
75
|
-
</statement>
|
|
76
|
-
</block>
|
|
77
|
-
</next>
|
|
78
|
-
</block>
|
|
79
|
-
</statement>
|
|
80
|
-
</block>
|
|
81
|
-
</statement>
|
|
82
|
-
</block>
|
|
83
|
-
</xml>
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
function makeAwait(instrument, groupe) {
|
|
4
|
-
var codeTotal = `
|
|
5
|
-
hh.FORK( // debut du fork de makeAwait avec en premiere position:` + instrument[0] + `
|
|
6
|
-
{
|
|
7
|
-
"%location":{},
|
|
8
|
-
"%tag":"fork"
|
|
9
|
-
},
|
|
10
|
-
` +
|
|
11
|
-
instrument.map( function(val) {
|
|
12
|
-
var code = `
|
|
13
|
-
hh.SEQUENCE( // Debut sequence pour ` + val + `
|
|
14
|
-
{
|
|
15
|
-
"%location":{},
|
|
16
|
-
"%tag":"seq"
|
|
17
|
-
},
|
|
18
|
-
hh.AWAIT(
|
|
19
|
-
{
|
|
20
|
-
"%location":{},
|
|
21
|
-
"%tag":"await",
|
|
22
|
-
"immediate":false,
|
|
23
|
-
"apply":function (){
|
|
24
|
-
return ((() => {
|
|
25
|
-
const ` + val + `IN =this["` + val + `IN"];
|
|
26
|
-
return ` + val + `IN.now;
|
|
27
|
-
})());},
|
|
28
|
-
},
|
|
29
|
-
hh.SIGACCESS({"signame":"` + val + `IN",
|
|
30
|
-
"pre":false,
|
|
31
|
-
"val":false,
|
|
32
|
-
"cnt":false})
|
|
33
|
-
), // Fin await ` + val + `IN
|
|
34
|
-
hh.EMIT(
|
|
35
|
-
{
|
|
36
|
-
"%location":{},
|
|
37
|
-
"%tag":"emit",
|
|
38
|
-
"` + val + `OUT" : "` + val + `OUT",
|
|
39
|
-
"apply":function (){
|
|
40
|
-
return ((() => {
|
|
41
|
-
const ` + val + `OUT = this["` + val + `OUT"];
|
|
42
|
-
return [true, ` + groupe + `];
|
|
43
|
-
})());
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
hh.SIGACCESS({
|
|
47
|
-
"signame":"` + val + `OUT",
|
|
48
|
-
"pre":true,
|
|
49
|
-
"val":true,
|
|
50
|
-
"cnt":false
|
|
51
|
-
}),
|
|
52
|
-
), // Fin emit ` + val + `OUT true
|
|
53
|
-
) // Fin sequence pour `+ val + `
|
|
54
|
-
`
|
|
55
|
-
return code;
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
codeTotal += ` ), // Fin fork de make await avec en premiere position:` + instrument[0];
|
|
59
|
-
return codeTotal;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function makeReservoir(name, instrument, groupe) {
|
|
63
|
-
var codeTotal = `
|
|
64
|
-
|
|
65
|
-
var `+ name + ` = hh.MODULE({"id":"`+ name + `","%location":{},"%tag":"module"},` +
|
|
66
|
-
instrument.map( function(val) {
|
|
67
|
-
var code = `
|
|
68
|
-
hh.SIGNAL({"%location":{},"direction":"IN", "name":"` + val + `IN"})`
|
|
69
|
-
return code;
|
|
70
|
-
}) + `,
|
|
71
|
-
hh.SIGNAL({"%location":{},"direction":"IN", "name":"stopReservoir"}),
|
|
72
|
-
hh.TRAP(
|
|
73
|
-
{
|
|
74
|
-
"EXIT":"EXIT",
|
|
75
|
-
"%location":{},
|
|
76
|
-
"%tag":"EXIT"
|
|
77
|
-
},
|
|
78
|
-
hh.ABORT({
|
|
79
|
-
"%location":{},
|
|
80
|
-
"%tag":"abort",
|
|
81
|
-
"immediate":false,
|
|
82
|
-
"apply":function (){return ((() => {
|
|
83
|
-
const stopReservoir = this["stopReservoir"];
|
|
84
|
-
return stopReservoir.now;
|
|
85
|
-
})());
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
hh.SIGACCESS({
|
|
89
|
-
"signame":"stopReservoir",
|
|
90
|
-
"pre":false,
|
|
91
|
-
"val":false,
|
|
92
|
-
"cnt":false
|
|
93
|
-
}),
|
|
94
|
-
hh.ATOM(
|
|
95
|
-
{
|
|
96
|
-
"%location":{},
|
|
97
|
-
"%tag":"node",
|
|
98
|
-
"apply":function () {
|
|
99
|
-
console.log("--- MAKE RESERVOIR:", ` + instrument[0] + ` );
|
|
100
|
-
var msg = {
|
|
101
|
-
type: 'startTank',
|
|
102
|
-
value: ` + instrument[0] + `
|
|
103
|
-
}
|
|
104
|
-
serveur.broadcast(JSON.stringify(msg));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
),` +
|
|
108
|
-
instrument.map( function(val) {
|
|
109
|
-
var code = `
|
|
110
|
-
hh.EMIT(
|
|
111
|
-
{
|
|
112
|
-
"%location":{},
|
|
113
|
-
"%tag":"emit",
|
|
114
|
-
"` + val + `OUT":"` + val + `OUT",
|
|
115
|
-
"apply":function (){
|
|
116
|
-
return ((() => {
|
|
117
|
-
const ` + val + ` = this["` + val + `OUT"];
|
|
118
|
-
return [true, ` + groupe + ` ];
|
|
119
|
-
})());
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
hh.SIGACCESS({
|
|
123
|
-
"signame":"` + val + `OUT",
|
|
124
|
-
"pre":true,
|
|
125
|
-
"val":true,
|
|
126
|
-
"cnt":false
|
|
127
|
-
})
|
|
128
|
-
), // Fin emit ` + val + `OUT true`
|
|
129
|
-
return code;
|
|
130
|
-
})
|
|
131
|
-
|
|
132
|
-
+ `
|
|
133
|
-
hh.ATOM(
|
|
134
|
-
{
|
|
135
|
-
"%location":{},
|
|
136
|
-
"%tag":"node",
|
|
137
|
-
"apply":function () {
|
|
138
|
-
gcs.informSelecteurOnMenuChange(` + groupe + ` , ` + instrument[0] + `, true);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
` +
|
|
143
|
-
makeAwait(instrument, groupe)
|
|
144
|
-
|
|
145
|
-
+ `
|
|
146
|
-
hh.EXIT(
|
|
147
|
-
{
|
|
148
|
-
"EXIT":"EXIT",
|
|
149
|
-
"%location":{},
|
|
150
|
-
"%tag":"break"
|
|
151
|
-
})
|
|
152
|
-
) // Fin Abort
|
|
153
|
-
), // Fin Trap
|
|
154
|
-
|
|
155
|
-
` +
|
|
156
|
-
instrument.map( function(val) {
|
|
157
|
-
var code = `
|
|
158
|
-
hh.EMIT(
|
|
159
|
-
{
|
|
160
|
-
"%location":{},
|
|
161
|
-
"%tag":"emit",
|
|
162
|
-
"` + val + `OUT":"` + val + `OUT",
|
|
163
|
-
"apply":function (){
|
|
164
|
-
return ((() => {
|
|
165
|
-
const ` + val + ` = this["` + val + `OUT"];
|
|
166
|
-
return [false, ` + groupe + ` ];
|
|
167
|
-
})());
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
hh.SIGACCESS({
|
|
171
|
-
"signame":"` + val + `OUT",
|
|
172
|
-
"pre":true,
|
|
173
|
-
"val":true,
|
|
174
|
-
"cnt":false
|
|
175
|
-
})
|
|
176
|
-
), // Fin emit ` + val + `OUT false`
|
|
177
|
-
return code;
|
|
178
|
-
})
|
|
179
|
-
+ `
|
|
180
|
-
hh.ATOM(
|
|
181
|
-
{
|
|
182
|
-
"%location":{},
|
|
183
|
-
"%tag":"node",
|
|
184
|
-
"apply":function () {
|
|
185
|
-
gcs.informSelecteurOnMenuChange(` + groupe + ` , ` + instrument[0] + `, false);
|
|
186
|
-
console.log("--- ABORT RESERVOIR:", ` + instrument[0] + `);
|
|
187
|
-
var msg = {
|
|
188
|
-
type: 'killTank',
|
|
189
|
-
value: ` + instrument[0] + `
|
|
190
|
-
}
|
|
191
|
-
serveur.broadcast(JSON.stringify(msg));
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
) // Fin atom,
|
|
195
|
-
); // Fin module
|
|
196
|
-
`;
|
|
197
|
-
return codeTotal;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
//console.log(makeAwait( [ "violonsNoir1", "violonsNoir2"] , 1 ));
|
|
202
|
-
console.log(makeReservoir( "violon", [ "violonsNoir1", "violonsNoir2"] , 1 ));
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
var sub1, toto, titi;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
hh = require("../hiphop/hiphop.js");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
sub1 = hh.MODULE({"id":"sub1","%location":{},"%tag":"module"},
|
|
9
|
-
|
|
10
|
-
hh.SIGNAL({
|
|
11
|
-
"%location":{},
|
|
12
|
-
"direction":"IN",
|
|
13
|
-
"name":"toto"
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hh.AWAIT(
|
|
18
|
-
{
|
|
19
|
-
"%location":{},
|
|
20
|
-
"%tag":"await",
|
|
21
|
-
"immediate":false,
|
|
22
|
-
"apply":function () {
|
|
23
|
-
return ((() => {
|
|
24
|
-
const toto=this["toto"];
|
|
25
|
-
return toto.now;
|
|
26
|
-
})());
|
|
27
|
-
},
|
|
28
|
-
"countapply":function (){ return 1;}
|
|
29
|
-
},
|
|
30
|
-
hh.SIGACCESS({
|
|
31
|
-
"signame":"toto",
|
|
32
|
-
"pre":false,
|
|
33
|
-
"val":false,
|
|
34
|
-
"cnt":false
|
|
35
|
-
})
|
|
36
|
-
),
|
|
37
|
-
|
|
38
|
-
hh.ATOM(
|
|
39
|
-
{
|
|
40
|
-
"%location":{},
|
|
41
|
-
"%tag":"node",
|
|
42
|
-
"apply":function () {console.log('Sub1');}
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
prg = hh.MACHINE({"id":"prg","%location":{},"%tag":"machine"},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
hh.SIGNAL({
|
|
53
|
-
"%location":{},
|
|
54
|
-
"direction":"IN",
|
|
55
|
-
"name":"toto"
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
hh.SIGNAL({
|
|
59
|
-
"%location":{},
|
|
60
|
-
"direction":"OUT",
|
|
61
|
-
"name":"titi"
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
hh.FORK(
|
|
67
|
-
{
|
|
68
|
-
"%location":{},
|
|
69
|
-
"%tag":"fork"
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
hh.SEQUENCE(
|
|
74
|
-
{
|
|
75
|
-
"%location":{},
|
|
76
|
-
"%tag":"seq"
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
hh.ATOM(
|
|
81
|
-
{
|
|
82
|
-
"%location":{},
|
|
83
|
-
"%tag":"node",
|
|
84
|
-
"apply":function () {console.log('message serveur');}
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
|
|
88
|
-
hh.EMIT(
|
|
89
|
-
{
|
|
90
|
-
"%location":{},
|
|
91
|
-
"%tag":"emit",
|
|
92
|
-
"toto":"toto",
|
|
93
|
-
"apply":function (){
|
|
94
|
-
return ((() => {
|
|
95
|
-
//const toto=this["toto"];
|
|
96
|
-
return 25;
|
|
97
|
-
})());
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
hh.SIGACCESS({
|
|
101
|
-
"signame":"toto",
|
|
102
|
-
"pre":true,
|
|
103
|
-
"val":true,
|
|
104
|
-
"cnt":false
|
|
105
|
-
})
|
|
106
|
-
),
|
|
107
|
-
|
|
108
|
-
),
|
|
109
|
-
|
|
110
|
-
hh.SEQUENCE(
|
|
111
|
-
{
|
|
112
|
-
"%location":{},
|
|
113
|
-
"%tag":"seq"
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
hh.EVERY(
|
|
119
|
-
{
|
|
120
|
-
"%location":{every: toto},
|
|
121
|
-
"%tag":"do/every",
|
|
122
|
-
"immediate":false,
|
|
123
|
-
"apply": function (){return ((() => {
|
|
124
|
-
const toto=this["toto"];
|
|
125
|
-
return toto.now;
|
|
126
|
-
})());},
|
|
127
|
-
"countapply":function (){ return 1;}
|
|
128
|
-
},
|
|
129
|
-
hh.SIGACCESS({
|
|
130
|
-
"signame":"toto",
|
|
131
|
-
"pre":false,
|
|
132
|
-
"val":false,
|
|
133
|
-
"cnt":false
|
|
134
|
-
}),
|
|
135
|
-
|
|
136
|
-
hh.ATOM(
|
|
137
|
-
{
|
|
138
|
-
"%location":{},
|
|
139
|
-
"%tag":"node",
|
|
140
|
-
"apply":function () {console.log('message serveur 2');}
|
|
141
|
-
}
|
|
142
|
-
),
|
|
143
|
-
|
|
144
|
-
hh.RUN({
|
|
145
|
-
"%location":{},
|
|
146
|
-
"%tag":"run",
|
|
147
|
-
"module": hh.getModule( "sub1", {}),
|
|
148
|
-
"toto":"",
|
|
149
|
-
"titi":"",
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
-
|
|
153
|
-
),
|
|
154
|
-
|
|
155
|
-
),
|
|
156
|
-
|
|
157
|
-
),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
module.exports=prg;
|
|
163
|
-
|
|
164
|
-
prg.react();
|
|
165
|
-
prg.react("toto");
|
|
166
|
-
prg.react("toto");
|
|
167
|
-
prg.react("toto");
|
|
168
|
-
prg.react("toto");
|