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
|
@@ -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' },
|
package/client/score/parto1.js
CHANGED
|
@@ -77,7 +77,10 @@ var textSize = 20 * screenY / Ybase;
|
|
|
77
77
|
|
|
78
78
|
// La version processing.min.js ne sais pas gérer les couleur en hexa.
|
|
79
79
|
function hex_to_RGB(hex) {
|
|
80
|
-
|
|
80
|
+
console.log("hex_to_RGB:", typeof hex, hex);
|
|
81
|
+
if(hex == '') return [0,0,0];
|
|
82
|
+
|
|
83
|
+
let m = hex.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);
|
|
81
84
|
return [ parseInt(m[1], 16), parseInt(m[2], 16), parseInt(m[3], 16)];
|
|
82
85
|
}
|
|
83
86
|
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
+
/**
|
|
3
|
+
* @fileOverview Display the score of the Skini piece
|
|
4
|
+
*
|
|
5
|
+
* browserify parto1.js -o parto1bundle.js
|
|
6
|
+
*
|
|
7
|
+
* @author Bertrand Petit-Hédelin <bertrand@hedelin.fr>
|
|
8
|
+
* @version 1.0
|
|
9
|
+
* @copyright (C) 2022 Bertrand Petit-Hédelin
|
|
10
|
+
*
|
|
11
|
+
* This program is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* any later version.
|
|
15
|
+
*
|
|
16
|
+
* This program is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU General Public License
|
|
22
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
10
24
|
"use strict"
|
|
11
25
|
|
|
12
26
|
var ipConfig = require('../../serveur/ipConfig');
|
|
@@ -64,7 +78,10 @@ var textSize = 20 * screenY / Ybase;
|
|
|
64
78
|
|
|
65
79
|
// La version processing.min.js ne sais pas gérer les couleur en hexa.
|
|
66
80
|
function hex_to_RGB(hex) {
|
|
67
|
-
|
|
81
|
+
console.log("hex_to_RGB:", typeof hex, hex);
|
|
82
|
+
if(hex == '') return [0,0,0];
|
|
83
|
+
|
|
84
|
+
let m = hex.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);
|
|
68
85
|
return [ parseInt(m[1], 16), parseInt(m[2], 16), parseInt(m[3], 16)];
|
|
69
86
|
}
|
|
70
87
|
|
|
@@ -1156,26 +1173,31 @@ function initWSSocket(host) {
|
|
|
1156
1173
|
}
|
|
1157
1174
|
}
|
|
1158
1175
|
window.initWSSocket = initWSSocket;
|
|
1159
|
-
|
|
1160
|
-
},{"../../serveur/ipConfig":2}],2:[function(require,module,exports){
|
|
1176
|
+
|
|
1177
|
+
},{"../../serveur/ipConfig":2}],2:[function(require,module,exports){
|
|
1161
1178
|
module.exports={
|
|
1162
|
-
"remoteIPAddressImage": "
|
|
1163
|
-
"remoteIPAddressSound": "
|
|
1179
|
+
"remoteIPAddressImage": "192.168.1.251",
|
|
1180
|
+
"remoteIPAddressSound": "192.168.1.251",
|
|
1164
1181
|
"remoteIPAddressLumiere": "localhost",
|
|
1165
|
-
"remoteIPAddressGame": "
|
|
1166
|
-
"
|
|
1182
|
+
"remoteIPAddressGame": "192.168.1.223",
|
|
1183
|
+
"interfaceZIPaddress": "192.168.1.250",
|
|
1184
|
+
"serverIPAddress": "192.168.1.251",
|
|
1167
1185
|
"webserveurPort": 8080,
|
|
1168
1186
|
"websocketServeurPort": 8383,
|
|
1169
1187
|
"InPortOSCMIDIfromDAW": 13000,
|
|
1170
1188
|
"OutPortOSCMIDItoDAW": 12000,
|
|
1171
|
-
"portOSCToGame":
|
|
1172
|
-
"portOSCFromGame":
|
|
1173
|
-
"
|
|
1189
|
+
"portOSCToGame": 1010,
|
|
1190
|
+
"portOSCFromGame": 3010,
|
|
1191
|
+
"portOSCFromInterfaceZData": 3005,
|
|
1192
|
+
"portOSCFromInterfaceZMidi": 3006,
|
|
1193
|
+
"portOSCFromInterfaceZMiniWi": 8888,
|
|
1194
|
+
"portOSCToInterfaceZ": 1000,
|
|
1195
|
+
"distribSequencerPort": 8899,
|
|
1174
1196
|
"outportProcessing": 10000,
|
|
1175
1197
|
"outportLumiere": 7700,
|
|
1176
1198
|
"inportLumiere": 9000,
|
|
1177
|
-
"sessionPath": "./pieces/",
|
|
1178
|
-
"piecePath" : "./pieces/"
|
|
1199
|
+
"sessionPath": "./pieces/opus/",
|
|
1200
|
+
"piecePath" : "./pieces/opus/"
|
|
1179
1201
|
}
|
|
1180
|
-
|
|
1181
|
-
},{}]},{},[1]);
|
|
1202
|
+
|
|
1203
|
+
},{}]},{},[1]);
|
|
@@ -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 {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|