nodeskini 1.0.2 → 1.0.5
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/hiphop_blocks.old.js +3010 -0
- package/blocklySkini/scripts/hiphop_blocks11-2025.js +6104 -0
- package/blocklySkini/scripts/main2.js +4 -4
- 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/simulateurListe/simulateurFork.mjs +1 -1
- package/client/simulateurListe/simulateurListe.js +3 -3
- package/myReact/archive/Nodeemitvaluedlocal1.hh.js +18 -18
- package/myReact/archive/atom.compile.hh.js +21 -20
- package/myReact/orchestrationHH.hh.js +2009 -0
- package/myReact/orchestrationHH.mjs +262 -420
- package/myReact/orchestrationHH.mjs.map +1 -1
- package/package.json +8 -3
- 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 +8 -19
- package/serveur/utilsHHSkini.hh.js +64 -64
- package/serveur/websocketServer.mjs +2090 -2052
- package/serveur/workerInterfaceZ.mjs +4 -7
|
@@ -333,10 +333,6 @@ function init(host) {
|
|
|
333
333
|
"kind": "block",
|
|
334
334
|
"type": "random_body"
|
|
335
335
|
}
|
|
336
|
-
/* {
|
|
337
|
-
"kind": "block",
|
|
338
|
-
"type": "random_block"
|
|
339
|
-
}*/
|
|
340
336
|
]
|
|
341
337
|
},
|
|
342
338
|
{
|
|
@@ -681,6 +677,10 @@ function init(host) {
|
|
|
681
677
|
{
|
|
682
678
|
"kind": "block",
|
|
683
679
|
"type": "hh_fork"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"kind": "block",
|
|
683
|
+
"type": "hh_par"
|
|
684
684
|
},
|
|
685
685
|
{
|
|
686
686
|
"kind": "block",
|
|
@@ -135,7 +135,7 @@ function initWSSocket(host) {
|
|
|
135
135
|
par = msgRecu.value;
|
|
136
136
|
var options = {
|
|
137
137
|
data: msgRecu.descriptors,
|
|
138
|
-
minDimensions: [14,
|
|
138
|
+
minDimensions: [14, 1],
|
|
139
139
|
columns: [{ type: 'text', width: 80, title: 'Note' }, { type: 'text', width: 80, title: 'Note stop' }, { type: 'text', width: 80, title: 'Flag' }, { type: 'text', width: 120, title: 'Text' }, { type: 'text', width: 120, title: 'Sound file' }, { type: 'text', width: 80, title: 'Fifo' }, { type: 'text', width: 80, title: 'Slot' }, { type: 'text', width: 80, title: 'Type' }, { type: 'text', width: 80, title: 'Vert. type' }, { type: 'text', width: 90, title: 'Group Index' }, { type: 'text', width: 80, title: 'Duration' }, { type: 'text', width: 100, title: 'IP address' }, { type: 'text', width: 80, title: 'Buffer num' }, { type: 'text', width: 80, title: 'Level' }]
|
|
140
140
|
};
|
|
141
141
|
ReactDOM.render(React.createElement(Jspreadsheet, { options: options }), document.getElementById('spreadsheet'));
|
|
@@ -136,7 +136,7 @@ function initWSSocket(host) {
|
|
|
136
136
|
par = msgRecu.value;
|
|
137
137
|
var options = {
|
|
138
138
|
data: msgRecu.descriptors,
|
|
139
|
-
minDimensions: [14,
|
|
139
|
+
minDimensions: [14, 1],
|
|
140
140
|
columns: [{ type: 'text', width: 80, title: 'Note' }, { type: 'text', width: 80, title: 'Note stop' }, { type: 'text', width: 80, title: 'Flag' }, { type: 'text', width: 120, title: 'Text' }, { type: 'text', width: 120, title: 'Sound file' }, { type: 'text', width: 80, title: 'Fifo' }, { type: 'text', width: 80, title: 'Slot' }, { type: 'text', width: 80, title: 'Type' }, { type: 'text', width: 80, title: 'Vert. type' }, { type: 'text', width: 90, title: 'Group Index' }, { type: 'text', width: 80, title: 'Duration' }, { type: 'text', width: 100, title: 'IP address' }, { type: 'text', width: 80, title: 'Buffer num' }, { type: 'text', width: 80, title: 'Level' }]
|
|
141
141
|
};
|
|
142
142
|
ReactDOM.render(React.createElement(Jspreadsheet, { options: options }), document.getElementById('spreadsheet'));
|
|
@@ -275,21 +275,27 @@ var Jspreadsheet = function (_React$Component2) {
|
|
|
275
275
|
},{"../../serveur/ipConfig.json":2}],2:[function(require,module,exports){
|
|
276
276
|
module.exports={
|
|
277
277
|
"remoteIPAddressImage": "192.168.1.251",
|
|
278
|
-
"remoteIPAddressSound": "
|
|
278
|
+
"remoteIPAddressSound": "192.168.1.251",
|
|
279
279
|
"remoteIPAddressLumiere": "localhost",
|
|
280
|
-
"remoteIPAddressGame": "
|
|
281
|
-
"
|
|
280
|
+
"remoteIPAddressGame": "192.168.1.223",
|
|
281
|
+
"interfaceZIPaddress": "192.168.1.250",
|
|
282
|
+
"serverIPAddress": "192.168.1.251",
|
|
282
283
|
"webserveurPort": 8080,
|
|
283
284
|
"websocketServeurPort": 8383,
|
|
284
285
|
"InPortOSCMIDIfromDAW": 13000,
|
|
285
286
|
"OutPortOSCMIDItoDAW": 12000,
|
|
286
|
-
"portOSCToGame":
|
|
287
|
-
"portOSCFromGame":
|
|
288
|
-
"
|
|
287
|
+
"portOSCToGame": 1010,
|
|
288
|
+
"portOSCFromGame": 3010,
|
|
289
|
+
"portOSCFromInterfaceZData": 3005,
|
|
290
|
+
"portOSCFromInterfaceZMidi": 3006,
|
|
291
|
+
"portOSCFromInterfaceZMiniWi": 8888,
|
|
292
|
+
"portOSCToInterfaceZ": 1000,
|
|
293
|
+
"distribSequencerPort": 8899,
|
|
289
294
|
"outportProcessing": 10000,
|
|
290
295
|
"outportLumiere": 7700,
|
|
291
296
|
"inportLumiere": 9000,
|
|
292
|
-
"sessionPath": "./pieces/",
|
|
293
|
-
"piecePath" : "./pieces/"
|
|
294
|
-
}
|
|
297
|
+
"sessionPath": "./pieces/tutos/",
|
|
298
|
+
"piecePath" : "./pieces/tutos/"
|
|
299
|
+
}
|
|
300
|
+
|
|
295
301
|
},{}]},{},[1]);
|
|
@@ -128,7 +128,7 @@ function initWSSocket(host) {
|
|
|
128
128
|
par = msgRecu.value;
|
|
129
129
|
var options = {
|
|
130
130
|
data: msgRecu.descriptors,
|
|
131
|
-
minDimensions: [14,
|
|
131
|
+
minDimensions: [14, 1],
|
|
132
132
|
columns: [
|
|
133
133
|
{ type: 'text', width: 80, title: 'Note' },
|
|
134
134
|
{ type: 'text', width: 80, title: 'Note stop' },
|
|
@@ -185,7 +185,7 @@ function initWSSocket(host) {
|
|
|
185
185
|
par = msgRecu.value;
|
|
186
186
|
var options = {
|
|
187
187
|
data: par.groupesDesSons,
|
|
188
|
-
minDimensions: [9,
|
|
188
|
+
minDimensions: [9, 1],
|
|
189
189
|
columns: [{ type: 'text', width: 80, title: 'Groupe' }, { type: 'text', width: 80, title: 'Index' }, { type: 'text', width: 80, title: 'Type' }, { type: 'text', width: 80, title: 'X' }, { type: 'text', width: 80, title: 'Y' }, { type: 'text', width: 140, title: 'Nb of El. or Tank nb' }, { type: 'text', width: 80, title: 'Color' }, { type: 'text', width: 80, title: 'Previous' }, { type: 'text', width: 80, title: 'Scene' }]
|
|
190
190
|
};
|
|
191
191
|
ReactDOM.render(React.createElement(Jspreadsheet, { options: options }), document.getElementById('spreadsheet'));
|
|
@@ -186,7 +186,7 @@ function initWSSocket(host) {
|
|
|
186
186
|
par = msgRecu.value;
|
|
187
187
|
var options = {
|
|
188
188
|
data: par.groupesDesSons,
|
|
189
|
-
minDimensions: [9,
|
|
189
|
+
minDimensions: [9, 1],
|
|
190
190
|
columns: [{ type: 'text', width: 80, title: 'Groupe' }, { type: 'text', width: 80, title: 'Index' }, { type: 'text', width: 80, title: 'Type' }, { type: 'text', width: 80, title: 'X' }, { type: 'text', width: 80, title: 'Y' }, { type: 'text', width: 140, title: 'Nb of El. or Tank nb' }, { type: 'text', width: 80, title: 'Color' }, { type: 'text', width: 80, title: 'Previous' }, { type: 'text', width: 80, title: 'Scene' }]
|
|
191
191
|
};
|
|
192
192
|
ReactDOM.render(React.createElement(Jspreadsheet, { options: options }), document.getElementById('spreadsheet'));
|
|
@@ -477,7 +477,7 @@ module.exports={
|
|
|
477
477
|
"remoteIPAddressImage": "192.168.1.251",
|
|
478
478
|
"remoteIPAddressSound": "192.168.1.251",
|
|
479
479
|
"remoteIPAddressLumiere": "localhost",
|
|
480
|
-
"remoteIPAddressGame": "192.168.1.
|
|
480
|
+
"remoteIPAddressGame": "192.168.1.223",
|
|
481
481
|
"interfaceZIPaddress": "192.168.1.250",
|
|
482
482
|
"serverIPAddress": "192.168.1.251",
|
|
483
483
|
"webserveurPort": 8080,
|
|
@@ -488,13 +488,14 @@ module.exports={
|
|
|
488
488
|
"portOSCFromGame": 3010,
|
|
489
489
|
"portOSCFromInterfaceZData": 3005,
|
|
490
490
|
"portOSCFromInterfaceZMidi": 3006,
|
|
491
|
+
"portOSCFromInterfaceZMiniWi": 8888,
|
|
491
492
|
"portOSCToInterfaceZ": 1000,
|
|
492
|
-
"distribSequencerPort":
|
|
493
|
+
"distribSequencerPort": 8899,
|
|
493
494
|
"outportProcessing": 10000,
|
|
494
495
|
"outportLumiere": 7700,
|
|
495
496
|
"inportLumiere": 9000,
|
|
496
|
-
"sessionPath": "./pieces/",
|
|
497
|
-
"piecePath" : "./pieces/"
|
|
497
|
+
"sessionPath": "./pieces/tutos/",
|
|
498
|
+
"piecePath" : "./pieces/tutos/"
|
|
498
499
|
}
|
|
499
500
|
|
|
500
501
|
},{}]},{},[1]);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileOverview Parametrage in React.js
|
|
3
3
|
* To compile JSX to js, launch this in the terminal, in ./client/parametrage
|
|
4
4
|
* npx babel --watch src --out-dir . --presets react-app/prod
|
|
5
|
-
* Do also : browserify paramReact.js -o paramReactbundle.js
|
|
5
|
+
* Do also : browserify paramReact.js -o paramReactbundle.js
|
|
6
6
|
*
|
|
7
7
|
* @author Bertrand Petit-Hédelin <bertrand@hedelin.fr>
|
|
8
8
|
* @version 1.0
|
|
@@ -175,7 +175,7 @@ function initWSSocket(host) {
|
|
|
175
175
|
par = msgRecu.value;
|
|
176
176
|
var options = {
|
|
177
177
|
data: par.groupesDesSons,
|
|
178
|
-
minDimensions: [9,
|
|
178
|
+
minDimensions: [9,1],
|
|
179
179
|
columns: [
|
|
180
180
|
{ type: 'text', width: 80, title: 'Groupe' },
|
|
181
181
|
{ type: 'text', width: 80, title: 'Index' },
|
|
@@ -101,7 +101,7 @@ for (var i = 0; i < myArgs.length; i++) {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/*******************************************************************
|
|
104
|
-
* GESTION DES TYPES
|
|
104
|
+
* GESTION DES TYPES HORIZONTAUX
|
|
105
105
|
* Traitement des listes reçues pour s'adapter à une séquence de types.
|
|
106
106
|
* En utilisant les types avec des tanks on n'a pas besoin de gérer
|
|
107
107
|
* la mémoires des patterns sélectionnés, ni de revoir les FIFOs.
|
|
@@ -89,7 +89,7 @@ if (myArgs.includes("-sim")) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/*******************************************************************
|
|
92
|
-
* GESTION DES TYPES
|
|
92
|
+
* GESTION DES TYPES HORIZONTAUX
|
|
93
93
|
* Traitement des listes reçues pour s'adapter à une séquence de types.
|
|
94
94
|
* En utilisant les types avec des tanks on n'a pas besoin de gérer
|
|
95
95
|
* la mémoires des patterns sélectionnés, ni de revoir les FIFOs.
|
|
@@ -109,7 +109,7 @@ function resetListOfTypes() {
|
|
|
109
109
|
resetListOfTypes();
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Initialize the list of patterns according to their types
|
|
112
|
+
* Initialize the list of patterns according to their horizontal types
|
|
113
113
|
* The index correponds to the type.
|
|
114
114
|
* @param {Array} list of patterns
|
|
115
115
|
*/
|
|
@@ -451,7 +451,7 @@ function initWSSocket(port) {
|
|
|
451
451
|
if (listClips.length === 0) {
|
|
452
452
|
if (debug) console.log("WS Recu : listClips vide");
|
|
453
453
|
if (tempoMax === tempoMin) {
|
|
454
|
-
console.log("WARN: tempoMin and tempoMax are equal");
|
|
454
|
+
console.log("WARN: tempoMin and tempoMax are equal", tempoMin, tempoMax);
|
|
455
455
|
tempoInstantListClip = tempoMax;
|
|
456
456
|
}
|
|
457
457
|
else {
|
|
@@ -7,7 +7,7 @@ var hh = require( "hiphop" );
|
|
|
7
7
|
hiphop module prg( O ) {
|
|
8
8
|
loop {
|
|
9
9
|
signal S = 1;
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
emit S( S.preval + 1 );
|
|
12
12
|
emit O( S.nowval );
|
|
13
13
|
yield;
|
|
@@ -25,28 +25,28 @@ let prg;hh=require("hiphop");
|
|
|
25
25
|
__hh_module=require("hiphop");
|
|
26
26
|
|
|
27
27
|
prg=__hh_module.MODULE({"id":"prg","%location":{"filename":"emitvaluedlocal1.hh.js","pos":69},"%tag":"module"},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
__hh_module.SIGNAL({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":81},"direction":"INOUT","name":"O"}),
|
|
29
|
+
__hh_module.LOOP({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":90}},
|
|
30
|
+
__hh_module.LOCAL({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":103},"%tag":"signal"},
|
|
31
|
+
__hh_module.SIGNAL(
|
|
32
|
+
{"name":"S",
|
|
33
|
+
"init_func":function (){return 1;}
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
__hh_module.EMIT(
|
|
37
|
+
{"%location":{"filename":"emitvaluedlocal1.hh.js","pos":135},
|
|
38
|
+
"%tag":"emit",
|
|
39
|
+
"S":"S",
|
|
40
|
+
"apply":function (){return ((() => {const S=this["S"];return S.preval + 1;})());
|
|
41
|
+
}
|
|
42
42
|
},
|
|
43
43
|
__hh_module.SIGACCESS({"signame":"S","pre":true,"val":true,"cnt":false})),
|
|
44
|
-
|
|
44
|
+
__hh_module.EMIT({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":165},"%tag":"emit","O":"O","apply":function (){return ((() => {const S=this["S"];return S.nowval;})());}
|
|
45
45
|
},
|
|
46
46
|
__hh_module.SIGACCESS({"signame":"S","pre":false,"val":true,"cnt":false})),
|
|
47
|
-
|
|
47
|
+
__hh_module.PAUSE({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":186},"%tag":"yield"}),__hh_module.EMIT({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":204},"%tag":"emit","O":"O","apply":function (){return ((() => {const O=this["O"];return O.preval;})());}
|
|
48
48
|
},
|
|
49
49
|
__hh_module.SIGACCESS({"signame":"O","pre":true,"val":true,"cnt":false})),
|
|
50
|
-
|
|
50
|
+
__hh_module.PAUSE({"%location":{"filename":"emitvaluedlocal1.hh.js","pos":225},"%tag":"yield"}))));
|
|
51
51
|
|
|
52
52
|
exports.prg=new hh.ReactiveMachine(prg,"emitvaluedlocal1")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
'use hopscript';
|
|
3
3
|
|
|
4
4
|
/*var hh = require( "hiphop" );
|
|
5
5
|
|
|
@@ -23,29 +23,30 @@ var m;
|
|
|
23
23
|
let prg;
|
|
24
24
|
|
|
25
25
|
function func() {
|
|
26
|
-
|
|
26
|
+
console.log('atom works!');
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
__hh_module= require(
|
|
30
|
-
|
|
31
|
-
prg=__hh_module.MACHINE(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
__hh_module = require('../hiphop/hiphop.js');
|
|
30
|
+
|
|
31
|
+
prg = __hh_module.MACHINE(
|
|
32
|
+
{ id: 'prg', '%location': { filename: 'emit-if2.hh.js', pos: 290 }, '%tag': 'module' },
|
|
33
|
+
|
|
34
|
+
__hh_module.LOOP(
|
|
35
|
+
{ '%location': { filename: 'emit-if2.hh.js', pos: 308 } },
|
|
36
|
+
__hh_module.PAUSE({ '%location': { filename: 'emit-if2.hh.js', pos: 321 }, '%tag': 'yield' }),
|
|
37
|
+
__hh_module.ATOM({
|
|
38
|
+
'%location': { filename: 'emit-if2.hh.js', pos: 334 },
|
|
39
|
+
'%tag': 'hop',
|
|
40
|
+
apply: function () {
|
|
41
|
+
func();
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
)
|
|
44
45
|
);
|
|
45
|
-
module.exports=prg;
|
|
46
|
+
module.exports = prg;
|
|
46
47
|
//m = new hh.ReactiveMachine(prg,"awaitvalued");
|
|
47
48
|
|
|
48
|
-
prg.debug_emitted_func=console.log;
|
|
49
|
+
prg.debug_emitted_func = console.log;
|
|
49
50
|
|
|
50
51
|
prg.react();
|
|
51
52
|
prg.react();
|