nodeskini 1.0.0
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/README.md +31 -0
- package/client/archive/bundle.js +11528 -0
- package/client/archive/golem.html +60 -0
- package/client/archive/golemClient.js +595 -0
- package/client/archive/golembundle.js +11634 -0
- package/client/archive/sequencer.html +43 -0
- package/client/archive/sequenceurClient.js +815 -0
- package/client/archive/stylegolem.css +158 -0
- package/client/archive/stylesequenceur.css +204 -0
- package/client/clientListe/Sortable-master/.circleci/config.yml +33 -0
- package/client/clientListe/Sortable-master/.editorconfig +15 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/bug-report.md +73 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/custom-template.md +48 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/feature-request.md +41 -0
- package/client/clientListe/Sortable-master/.jshintrc +25 -0
- package/client/clientListe/Sortable-master/.testcaferc.json +7 -0
- package/client/clientListe/Sortable-master/CONTRIBUTING.md +26 -0
- package/client/clientListe/Sortable-master/LICENSE +21 -0
- package/client/clientListe/Sortable-master/README.md +813 -0
- package/client/clientListe/Sortable-master/Sortable.js +3709 -0
- package/client/clientListe/Sortable-master/Sortable.min.js +2 -0
- package/client/clientListe/Sortable-master/Sortable.min.old.js +2 -0
- package/client/clientListe/Sortable-master/Sortable.min.old.old.js +2 -0
- package/client/clientListe/Sortable-master/babel.config.js +27 -0
- package/client/clientListe/Sortable-master/bower.json +30 -0
- package/client/clientListe/Sortable-master/entry/entry-complete.js +8 -0
- package/client/clientListe/Sortable-master/entry/entry-core.js +19 -0
- package/client/clientListe/Sortable-master/entry/entry-defaults.js +19 -0
- package/client/clientListe/Sortable-master/index.html +460 -0
- package/client/clientListe/Sortable-master/modular/sortable.complete.esm.js +3701 -0
- package/client/clientListe/Sortable-master/modular/sortable.core.esm.js +3698 -0
- package/client/clientListe/Sortable-master/modular/sortable.esm.js +3699 -0
- package/client/clientListe/Sortable-master/package-lock.json +5704 -0
- package/client/clientListe/Sortable-master/package.json +56 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/AutoScroll.js +270 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/README.md +80 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/MultiDrag.js +617 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/README.md +96 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/OnSpill.js +79 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/README.md +60 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/README.md +178 -0
- package/client/clientListe/Sortable-master/plugins/Swap/README.md +55 -0
- package/client/clientListe/Sortable-master/plugins/Swap/Swap.js +90 -0
- package/client/clientListe/Sortable-master/plugins/Swap/index.js +1 -0
- package/client/clientListe/Sortable-master/scripts/banner.js +8 -0
- package/client/clientListe/Sortable-master/scripts/build.js +17 -0
- package/client/clientListe/Sortable-master/scripts/esm-build.js +28 -0
- package/client/clientListe/Sortable-master/scripts/minify.js +11 -0
- package/client/clientListe/Sortable-master/scripts/test-compat.js +30 -0
- package/client/clientListe/Sortable-master/scripts/test.js +21 -0
- package/client/clientListe/Sortable-master/scripts/umd-build.js +15 -0
- package/client/clientListe/Sortable-master/src/Animation.js +175 -0
- package/client/clientListe/Sortable-master/src/BrowserInfo.js +12 -0
- package/client/clientListe/Sortable-master/src/EventDispatcher.js +57 -0
- package/client/clientListe/Sortable-master/src/PluginManager.js +87 -0
- package/client/clientListe/Sortable-master/src/Sortable.js +1971 -0
- package/client/clientListe/Sortable-master/src/utils.js +556 -0
- package/client/clientListe/Sortable-master/st/app.js +224 -0
- package/client/clientListe/Sortable-master/st/iframe/frame.html +32 -0
- package/client/clientListe/Sortable-master/st/iframe/index.html +49 -0
- package/client/clientListe/Sortable-master/st/logo.png +0 -0
- package/client/clientListe/Sortable-master/st/og-image.png +0 -0
- package/client/clientListe/Sortable-master/st/prettify/prettify.css +1 -0
- package/client/clientListe/Sortable-master/st/prettify/prettify.js +46 -0
- package/client/clientListe/Sortable-master/st/prettify/run_prettify.js +64 -0
- package/client/clientListe/Sortable-master/st/saucelabs.svg +1 -0
- package/client/clientListe/Sortable-master/st/theme.css +254 -0
- package/client/clientListe/Sortable-master/tests/Sortable.compat.test.js +39 -0
- package/client/clientListe/Sortable-master/tests/Sortable.test.js +386 -0
- package/client/clientListe/Sortable-master/tests/dual-list.html +34 -0
- package/client/clientListe/Sortable-master/tests/empty-list.html +30 -0
- package/client/clientListe/Sortable-master/tests/filter.html +27 -0
- package/client/clientListe/Sortable-master/tests/handles.html +27 -0
- package/client/clientListe/Sortable-master/tests/nested.html +67 -0
- package/client/clientListe/Sortable-master/tests/single-list.html +25 -0
- package/client/clientListe/Sortable-master/tests/style.css +18 -0
- package/client/clientListe/clientListe.html +148 -0
- package/client/clientListe/clientListe.js +1508 -0
- package/client/clientListe/clientListebundle.js +13164 -0
- package/client/clientListe/images/poubelle.png +0 -0
- package/client/clientListe/images/start.png +0 -0
- package/client/clientListe/images/stop.png +0 -0
- package/client/clientListe/images/submit.png +0 -0
- package/client/clientListe/sortable-theme-bootstrap.css +90 -0
- package/client/configurateur/configReact.js +273 -0
- package/client/configurateur/configReactbundle.js +295 -0
- package/client/configurateur/configurateur.css +95 -0
- package/client/configurateur/configurateur.html +48 -0
- package/client/configurateur/lib/jexcel.css +755 -0
- package/client/configurateur/lib/jexcel.js +14970 -0
- package/client/configurateur/lib/jsuites.css +2801 -0
- package/client/configurateur/lib/jsuites.js +11822 -0
- package/client/configurateur/lib/react-dom.production.min.js +239 -0
- package/client/configurateur/lib/react.production.min.js +32 -0
- package/client/configurateur/src/configReact.js +247 -0
- package/client/controleur/clientcontroleur.js +536 -0
- package/client/controleur/clientcontroleur.test.js +282 -0
- package/client/controleur/controleur.html +51 -0
- package/client/controleur/controleurbundle.js +565 -0
- package/client/controleur/stylecontroleur.css +236 -0
- package/client/controleurHH/controleurHH.html +71 -0
- package/client/controleurHH/controleurHH.js +252 -0
- package/client/controleurHH/styles/index.css +320 -0
- package/client/controleurHH/styles/material.css +11552 -0
- package/client/parametrage/paramReact.js +473 -0
- package/client/parametrage/paramReactbundle.js +500 -0
- package/client/parametrage/parametrage.css +111 -0
- package/client/parametrage/parametrage.html +163 -0
- package/client/parametrage/src/paramReact.js +459 -0
- package/client/score/hash.js +83 -0
- package/client/score/p5.min.js +3 -0
- package/client/score/parto1.js +1171 -0
- package/client/score/parto1bundle.js +1181 -0
- package/client/score/processing.min.js +431 -0
- package/client/score/score.html +15 -0
- package/client/score/score.js +34 -0
- package/client/simulateurListe/simulateurFork.js +750 -0
- package/client/simulateurListe/simulateurFork.mjs +681 -0
- package/client/simulateurListe/simulateurForkSansReorg.js +569 -0
- package/client/simulateurListe/simulateurListe.js +628 -0
- package/myReact/archive/Nodeemitvaluedlocal1.hh.js +52 -0
- package/myReact/archive/abort-parNode.js +79 -0
- package/myReact/archive/abroNode.js +169 -0
- package/myReact/archive/abroNode2.js +80 -0
- package/myReact/archive/atom.compile.hh.js +51 -0
- package/myReact/archive/await-countNode.js +67 -0
- package/myReact/archive/await-nowvalNode.js +44 -0
- package/myReact/archive/callHH.js +96 -0
- package/myReact/archive/emit-if2.hh.compiled.js +113 -0
- package/myReact/archive/every1Node.js +35 -0
- package/myReact/archive/if-runNode.js +74 -0
- package/myReact/archive/if1Node.js +43 -0
- package/myReact/archive/makeawait.js +0 -0
- package/myReact/archive/myReact.old.js +684 -0
- package/myReact/archive/orchestration.js +281 -0
- package/myReact/archive/orchestration1.js +132 -0
- package/myReact/archive/orchestration1.xml +465 -0
- package/myReact/archive/orchestration2.js +161 -0
- package/myReact/archive/orchestrationHH.mano.js +280 -0
- package/myReact/archive/orchestrationHHTest.js +428 -0
- package/myReact/archive/orchestrationHHTest.xml +234 -0
- package/myReact/archive/orchestrationHHTestRun.js +104 -0
- package/myReact/archive/orchestrationHHTestRun.xml +34 -0
- package/myReact/archive/orchestrationTest0.js +178 -0
- package/myReact/archive/orchestrationTest1.js +181 -0
- package/myReact/archive/orchestrationTest2.js +281 -0
- package/myReact/archive/run3pointsNode.js +59 -0
- package/myReact/archive/runNode.js +123 -0
- package/myReact/archive/runNode2.js +91 -0
- package/myReact/archive/testAwait1.js +141 -0
- package/myReact/archive/testAwait1.xml +86 -0
- package/myReact/archive/testEvery1.js +122 -0
- package/myReact/archive/testEvery1.xml +79 -0
- package/myReact/archive/testHH1.js +135 -0
- package/myReact/archive/testHH1.xml +86 -0
- package/myReact/archive/testHH1revu.js +104 -0
- package/myReact/archive/testHH2.js +122 -0
- package/myReact/archive/testHH2.xml +79 -0
- package/myReact/archive/testHH3.js +130 -0
- package/myReact/archive/testHH3.xml +86 -0
- package/myReact/archive/testHHabort.js +121 -0
- package/myReact/archive/testHHabort.xml +83 -0
- package/myReact/archive/testMakeawait.js +202 -0
- package/myReact/archive/testRun1.js +168 -0
- package/myReact/archive/testRun1.xml +142 -0
- package/myReact/archive/titi.js +28 -0
- package/myReact/archive/titi.xml +110 -0
- package/myReact/archive/toto.js +73 -0
- package/myReact/archive/toto.xml +198 -0
- package/myReact/archive/trap-await-parallelNode.js +123 -0
- package/myReact/inutiles/hiver2022.xml +804 -0
- package/myReact/inutiles/hopeNode.xml +459 -0
- package/myReact/inutiles/mars2022.xml +871 -0
- package/myReact/inutiles/mystique1.xml +318 -0
- package/myReact/inutiles/mystiqueOSC.xml +277 -0
- package/myReact/inutiles/opus5Node.xml +1271 -0
- package/myReact/inutiles/opus5NodeLinux.xml +1241 -0
- package/myReact/inutiles/orchestrationHH.xml +541 -0
- package/myReact/inutiles/orchestrationHH2.xml +547 -0
- package/myReact/inutiles/testHH.xml +95 -0
- package/myReact/inutiles/trouveLaPercuTenor.xml +349 -0
- package/myReact/myReact.js +744 -0
- package/myReact/myReact.min.js +1 -0
- package/myReact/orchestrationHH.js +311 -0
- package/myReact/orchestrationHH.mjs +436 -0
- package/myReact/orchestrationHH.mjs.map +1 -0
- package/package.json +46 -0
- package/serveur/OSCandMidi.mjs +361 -0
- package/serveur/computeScore.mjs +415 -0
- package/serveur/controleDAW.mjs +1149 -0
- package/serveur/defaultSession.csv +2 -0
- package/serveur/defaultSkiniParametres.js +119 -0
- package/serveur/gameOSC.mjs +96 -0
- package/serveur/groupeClientsSons.mjs +1014 -0
- package/serveur/ipConfig.json +24 -0
- package/serveur/ipConfig127.json +19 -0
- package/serveur/ipConfig75.json +17 -0
- package/serveur/ipConfigBH.json +19 -0
- package/serveur/ipConfigLocal.json +19 -0
- package/serveur/midiConfig.json +26 -0
- package/serveur/midiConfigBH.json +26 -0
- package/serveur/midiConfigVoid.json +3 -0
- package/serveur/midimix.mjs +570 -0
- package/serveur/saveParam.mjs +159 -0
- package/serveur/skiniParametres.good.js +132 -0
- package/serveur/skiniParametres.js +106 -0
- package/serveur/utilsHHSkini.hh.js +64 -0
- package/serveur/utilsSkini.mjs +137 -0
- package/serveur/websocketServer.mjs +2052 -0
- package/serveur/workerInterfaceZ.mjs +327 -0
- package/serveur/workerSynchro.mjs +49 -0
- package/skini.mjs +141 -0
|
@@ -0,0 +1,500 @@
|
|
|
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 Parametrage in React.js
|
|
4
|
+
* To compile JSX to js, launch this in the terminal, in ./client/parametrage
|
|
5
|
+
* npx babel --watch src --out-dir . --presets react-app/prod
|
|
6
|
+
* Do also : browserify paramReact.js -o paramReactbundle.js in
|
|
7
|
+
*
|
|
8
|
+
* @author Bertrand Petit-Hédelin <bertrand@hedelin.fr>
|
|
9
|
+
* @version 1.0
|
|
10
|
+
* @copyright (C) 2022 Bertrand Petit-Hédelin
|
|
11
|
+
*
|
|
12
|
+
* This program is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* any later version.
|
|
16
|
+
*
|
|
17
|
+
* This program is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU General Public License
|
|
23
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
'use strict';
|
|
26
|
+
|
|
27
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
28
|
+
|
|
29
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
30
|
+
|
|
31
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32
|
+
|
|
33
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
34
|
+
|
|
35
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
36
|
+
|
|
37
|
+
var par;
|
|
38
|
+
var ipConfig = require("../../serveur/ipConfig.json");
|
|
39
|
+
var debug1 = true;
|
|
40
|
+
|
|
41
|
+
var index = Math.floor(Math.random() * 10000 + 1); // Pour identifier le client
|
|
42
|
+
var ws;
|
|
43
|
+
|
|
44
|
+
// Variables de parametres en local
|
|
45
|
+
// Elles sont nécessaires pour le traitement avant la mise à jour globale
|
|
46
|
+
// après validation.
|
|
47
|
+
// Le chargement met à jour ces données.
|
|
48
|
+
|
|
49
|
+
var directMidiON = false;
|
|
50
|
+
var english = false;
|
|
51
|
+
var reactOnPlay = false;
|
|
52
|
+
var pulsationON = false;
|
|
53
|
+
var shufflePatterns = false;
|
|
54
|
+
var nbeDeGroupesClients;
|
|
55
|
+
|
|
56
|
+
var synchoOnMidiClock = false;
|
|
57
|
+
var synchroLink = false;
|
|
58
|
+
var synchroSkini = false;
|
|
59
|
+
var timer;
|
|
60
|
+
|
|
61
|
+
var soundFilesPath1;
|
|
62
|
+
|
|
63
|
+
var simulatorInAseperateGroup = false;
|
|
64
|
+
var tempoMax;
|
|
65
|
+
var tempoMin;
|
|
66
|
+
var limiteDureeAttente;
|
|
67
|
+
|
|
68
|
+
var useRaspberries = false;
|
|
69
|
+
var playBufferMessage;
|
|
70
|
+
var raspOSCPort;
|
|
71
|
+
var algoGestionFifo;
|
|
72
|
+
var gameOSCSignals = false;
|
|
73
|
+
|
|
74
|
+
var sensorOSC = false;
|
|
75
|
+
var tempoSensorsInit = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
76
|
+
var sensorsSensibilities = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
77
|
+
|
|
78
|
+
var msg = { // On met des valeurs pas defaut
|
|
79
|
+
type: "configuration",
|
|
80
|
+
text: "ECRAN_NOIR",
|
|
81
|
+
pseudo: "Anonyme",
|
|
82
|
+
value: 0
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
function updateParameters() {
|
|
86
|
+
// On ne récuppère que les "true" avec le querySelectorAll
|
|
87
|
+
// Donc on met les status locaux à "false" avant mise à jour.
|
|
88
|
+
directMidiON = false;
|
|
89
|
+
english = false;
|
|
90
|
+
reactOnPlay = false;
|
|
91
|
+
shufflePatterns = false;
|
|
92
|
+
pulsationON = false;
|
|
93
|
+
simulatorInAseperateGroup = false;
|
|
94
|
+
useRaspberries = false;
|
|
95
|
+
synchoOnMidiClock = false;
|
|
96
|
+
synchroLink = false;
|
|
97
|
+
synchroSkini = false;
|
|
98
|
+
gameOSCSignals = false;
|
|
99
|
+
sensorOSC = false;
|
|
100
|
+
|
|
101
|
+
var parameters = document.querySelectorAll('input[name="parameter"]:checked');
|
|
102
|
+
parameters.forEach(function (checkbox) {
|
|
103
|
+
switch (checkbox.value) {
|
|
104
|
+
case "directMidi":
|
|
105
|
+
directMidiON = true;
|
|
106
|
+
break;
|
|
107
|
+
|
|
108
|
+
case "english":
|
|
109
|
+
english = true;
|
|
110
|
+
break;
|
|
111
|
+
|
|
112
|
+
case "reactOnPlay":
|
|
113
|
+
reactOnPlay = true;
|
|
114
|
+
break;
|
|
115
|
+
|
|
116
|
+
case "shufflePatterns":
|
|
117
|
+
shufflePatterns = true;
|
|
118
|
+
break;
|
|
119
|
+
|
|
120
|
+
case "pulsationON":
|
|
121
|
+
pulsationON = true;
|
|
122
|
+
break;
|
|
123
|
+
|
|
124
|
+
case "useRaspberries":
|
|
125
|
+
useRaspberries = true;
|
|
126
|
+
break;
|
|
127
|
+
|
|
128
|
+
case "simulatorInAseperateGroup":
|
|
129
|
+
simulatorInAseperateGroup = true;
|
|
130
|
+
break;
|
|
131
|
+
|
|
132
|
+
case "gameOSC":
|
|
133
|
+
gameOSCSignals = true;
|
|
134
|
+
break;
|
|
135
|
+
|
|
136
|
+
case "sensorOSC":
|
|
137
|
+
sensorOSC = true;
|
|
138
|
+
break;
|
|
139
|
+
|
|
140
|
+
case "synchoOnMidiClock":
|
|
141
|
+
synchoOnMidiClock = true;
|
|
142
|
+
break;
|
|
143
|
+
|
|
144
|
+
case "synchroLink":
|
|
145
|
+
synchroLink = true;
|
|
146
|
+
break;
|
|
147
|
+
|
|
148
|
+
case "synchroSkini":
|
|
149
|
+
synchroSkini = true;
|
|
150
|
+
break;
|
|
151
|
+
|
|
152
|
+
default:
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function initWSSocket(host) {
|
|
158
|
+
|
|
159
|
+
window.resizeTo(600, 600);
|
|
160
|
+
|
|
161
|
+
ws = new WebSocket("ws://" + host + ":" + ipConfig.websocketServeurPort);
|
|
162
|
+
console.log("configurateur ws://" + host + ":" + ipConfig.websocketServeurPort);
|
|
163
|
+
|
|
164
|
+
ws.onopen = function (event) {
|
|
165
|
+
var msg = {
|
|
166
|
+
type: "startSpectateur",
|
|
167
|
+
text: "pieceParameters",
|
|
168
|
+
id: index
|
|
169
|
+
};
|
|
170
|
+
console.log("ID sent to server:", msg.id);
|
|
171
|
+
ws.send(JSON.stringify(msg));
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
//Traitement de la Réception sur le client
|
|
175
|
+
ws.onmessage = function (event) {
|
|
176
|
+
var msgRecu = JSON.parse(event.data);
|
|
177
|
+
switch (msgRecu.type) {
|
|
178
|
+
|
|
179
|
+
case "message":
|
|
180
|
+
console.log(msgRecu);
|
|
181
|
+
//document.getElementById("MessageDuServeur").innerHTML = msgRecu.value;
|
|
182
|
+
break;
|
|
183
|
+
|
|
184
|
+
case "skiniParametres":
|
|
185
|
+
console.log("skiniParametres:", msgRecu.value);
|
|
186
|
+
par = msgRecu.value;
|
|
187
|
+
var options = {
|
|
188
|
+
data: par.groupesDesSons,
|
|
189
|
+
minDimensions: [9, 5],
|
|
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
|
+
};
|
|
192
|
+
ReactDOM.render(React.createElement(Jspreadsheet, { options: options }), document.getElementById('spreadsheet'));
|
|
193
|
+
|
|
194
|
+
// Initialiser l'affichage en fonction des parametres chargés
|
|
195
|
+
if (debug1) console.log("par.directMidiON:", par.directMidiON);
|
|
196
|
+
|
|
197
|
+
directMidiON = par.directMidiON;
|
|
198
|
+
document.getElementById("directMidi").checked = directMidiON;
|
|
199
|
+
|
|
200
|
+
english = par.english;
|
|
201
|
+
document.getElementById("english").checked = english;
|
|
202
|
+
|
|
203
|
+
reactOnPlay = par.reactOnPlay;
|
|
204
|
+
document.getElementById("reactOnPlay").checked = reactOnPlay;
|
|
205
|
+
|
|
206
|
+
shufflePatterns = par.shufflePatterns;
|
|
207
|
+
document.getElementById("shufflePatterns").checked = shufflePatterns;
|
|
208
|
+
|
|
209
|
+
pulsationON = par.pulsationON;
|
|
210
|
+
document.getElementById("pulsationON").checked = pulsationON;
|
|
211
|
+
|
|
212
|
+
simulatorInAseperateGroup = par.simulatorInAseperateGroup;
|
|
213
|
+
document.getElementById("simulatorInAseperateGroup").checked = simulatorInAseperateGroup;
|
|
214
|
+
|
|
215
|
+
useRaspberries = par.useRaspberries;
|
|
216
|
+
document.getElementById("useRaspberries").checked = useRaspberries;
|
|
217
|
+
|
|
218
|
+
gameOSCSignals = par.gameOSCSignals;
|
|
219
|
+
document.getElementById("gameOSC").checked = gameOSCSignals;
|
|
220
|
+
|
|
221
|
+
sensorOSC = par.sensorOSC;
|
|
222
|
+
document.getElementById("sensorOSC").checked = sensorOSC;
|
|
223
|
+
|
|
224
|
+
synchoOnMidiClock = par.synchoOnMidiClock;
|
|
225
|
+
document.getElementById("synchoOnMidiClock").checked = synchoOnMidiClock;
|
|
226
|
+
|
|
227
|
+
synchroLink = par.synchroLink;
|
|
228
|
+
document.getElementById("synchroLink").checked = synchroLink;
|
|
229
|
+
|
|
230
|
+
synchroSkini = par.synchroSkini;
|
|
231
|
+
document.getElementById("synchroSkini").checked = synchroSkini;
|
|
232
|
+
|
|
233
|
+
soundFilesPath1 = par.soundFilesPath1;
|
|
234
|
+
document.getElementById("soundFilesPath1").value = soundFilesPath1;
|
|
235
|
+
|
|
236
|
+
tempoMax = par.tempoMax;
|
|
237
|
+
document.getElementById("tempoMax").value = tempoMax;
|
|
238
|
+
|
|
239
|
+
tempoMin = par.tempoMin;
|
|
240
|
+
document.getElementById("tempoMin").value = tempoMin;
|
|
241
|
+
|
|
242
|
+
limiteDureeAttente = par.limiteDureeAttente;
|
|
243
|
+
document.getElementById("limiteDureeAttente").value = limiteDureeAttente;
|
|
244
|
+
|
|
245
|
+
playBufferMessage = par.playBufferMessage;
|
|
246
|
+
document.getElementById("playBufferMessage").value = playBufferMessage;
|
|
247
|
+
|
|
248
|
+
raspOSCPort = par.raspOSCPort;
|
|
249
|
+
document.getElementById("raspOSCPort").value = raspOSCPort;
|
|
250
|
+
|
|
251
|
+
nbeDeGroupesClients = par.nbeDeGroupesClients;
|
|
252
|
+
document.getElementById("nbeDeGroupesClients").value = nbeDeGroupesClients;
|
|
253
|
+
|
|
254
|
+
timer = par.timer;
|
|
255
|
+
document.getElementById("timer").value = timer;
|
|
256
|
+
|
|
257
|
+
algoGestionFifo = par.algoGestionFifo;
|
|
258
|
+
document.getElementById("algoGestionFifo").value = algoGestionFifo;
|
|
259
|
+
|
|
260
|
+
if (par.tempoSensorsInit !== undefined) {
|
|
261
|
+
tempoSensorsInit = par.tempoSensorsInit;
|
|
262
|
+
document.getElementById("sensorInit1").value = tempoSensorsInit[0];
|
|
263
|
+
document.getElementById("sensorInit2").value = tempoSensorsInit[1];
|
|
264
|
+
document.getElementById("sensorInit3").value = tempoSensorsInit[2];
|
|
265
|
+
document.getElementById("sensorInit4").value = tempoSensorsInit[3];
|
|
266
|
+
document.getElementById("sensorInit5").value = tempoSensorsInit[4];
|
|
267
|
+
document.getElementById("sensorInit6").value = tempoSensorsInit[5];
|
|
268
|
+
document.getElementById("sensorInit7").value = tempoSensorsInit[6];
|
|
269
|
+
document.getElementById("sensorInit8").value = tempoSensorsInit[7];
|
|
270
|
+
document.getElementById("sensorInit9").value = tempoSensorsInit[8];
|
|
271
|
+
document.getElementById("sensorInit10").value = tempoSensorsInit[9];
|
|
272
|
+
document.getElementById("sensorInit11").value = tempoSensorsInit[10];
|
|
273
|
+
document.getElementById("sensorInit12").value = tempoSensorsInit[11];
|
|
274
|
+
} else {
|
|
275
|
+
tempoSensorsInit = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (par.sensorsSensibilities !== undefined) {
|
|
279
|
+
sensorsSensibilities = par.sensorsSensibilities;
|
|
280
|
+
document.getElementById("sensorSensibily1").value = sensorsSensibilities[0];
|
|
281
|
+
document.getElementById("sensorSensibily2").value = sensorsSensibilities[1];
|
|
282
|
+
document.getElementById("sensorSensibily3").value = sensorsSensibilities[2];
|
|
283
|
+
document.getElementById("sensorSensibily4").value = sensorsSensibilities[3];
|
|
284
|
+
document.getElementById("sensorSensibily5").value = sensorsSensibilities[4];
|
|
285
|
+
document.getElementById("sensorSensibily6").value = sensorsSensibilities[5];
|
|
286
|
+
document.getElementById("sensorSensibily7").value = sensorsSensibilities[6];
|
|
287
|
+
document.getElementById("sensorSensibily8").value = sensorsSensibilities[7];
|
|
288
|
+
document.getElementById("sensorSensibily9").value = sensorsSensibilities[8];
|
|
289
|
+
document.getElementById("sensorSensibily10").value = sensorsSensibilities[9];
|
|
290
|
+
document.getElementById("sensorSensibily11").value = sensorsSensibilities[10];
|
|
291
|
+
document.getElementById("sensorSensibily12").value = sensorsSensibilities[11];
|
|
292
|
+
} else {
|
|
293
|
+
sensorsSensibilities = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
294
|
+
}
|
|
295
|
+
break;
|
|
296
|
+
|
|
297
|
+
default: //console.log("Client reçoit un message inconnu", msgRecu.type);
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
ws.onclose = function (event) {
|
|
302
|
+
console.log("Client: websocket closed for :", index);
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
window.onbeforeunload = function () {
|
|
306
|
+
msg.type = "closeSpectateur";
|
|
307
|
+
msg.text = "DISCONNECT_SPECTATEUR";
|
|
308
|
+
ws.send(JSON.stringify(msg));
|
|
309
|
+
ws.close();
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
window.initWSSocket = initWSSocket;
|
|
313
|
+
|
|
314
|
+
// Pour test, inutile sinon
|
|
315
|
+
/* class LikeButton extends React.Component {
|
|
316
|
+
constructor(props) {
|
|
317
|
+
super(props);
|
|
318
|
+
this.state = { liked: false };
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
render() {
|
|
322
|
+
if (this.state.liked) {
|
|
323
|
+
return par.sessionPath;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
return (
|
|
327
|
+
<button onClick={() => this.setState({ liked: true })}>
|
|
328
|
+
Like
|
|
329
|
+
</button>
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
var Jspreadsheet = function (_React$Component) {
|
|
336
|
+
_inherits(Jspreadsheet, _React$Component);
|
|
337
|
+
|
|
338
|
+
function Jspreadsheet(props) {
|
|
339
|
+
_classCallCheck(this, Jspreadsheet);
|
|
340
|
+
|
|
341
|
+
var _this = _possibleConstructorReturn(this, (Jspreadsheet.__proto__ || Object.getPrototypeOf(Jspreadsheet)).call(this, props));
|
|
342
|
+
|
|
343
|
+
_this.hideSomeColumns = function (obj) {
|
|
344
|
+
//obj.hideColumn(2);
|
|
345
|
+
//obj.hideColumn(6);
|
|
346
|
+
//obj.hideColumn(8);
|
|
347
|
+
//obj.hideColumn(11);
|
|
348
|
+
//obj.hideColumn(12);
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
_this.componentDidMount = function () {
|
|
352
|
+
this.el = jspreadsheet(this.wrapper.current, this.options);
|
|
353
|
+
this.hideSomeColumns(this.el);
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
_this.addRow = function () {
|
|
357
|
+
this.el.insertRow();
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
_this.updateAll = function () {
|
|
361
|
+
var param = void 0;
|
|
362
|
+
param = this.el.getData();
|
|
363
|
+
console.log(param);
|
|
364
|
+
|
|
365
|
+
par.groupesDesSons = param;
|
|
366
|
+
par.directMidiON = directMidiON;
|
|
367
|
+
par.english = english;
|
|
368
|
+
par.reactOnPlay = reactOnPlay;
|
|
369
|
+
par.shufflePatterns = shufflePatterns;
|
|
370
|
+
par.pulsationON = pulsationON;
|
|
371
|
+
par.simulatorInAseperateGroup = simulatorInAseperateGroup;
|
|
372
|
+
par.useRaspberries = useRaspberries;
|
|
373
|
+
par.synchoOnMidiClock = synchoOnMidiClock;
|
|
374
|
+
par.synchroLink = synchroLink;
|
|
375
|
+
par.synchroSkini = synchroSkini;
|
|
376
|
+
par.gameOSCSignals = gameOSCSignals;
|
|
377
|
+
par.sensorOSC = sensorOSC;
|
|
378
|
+
|
|
379
|
+
par.soundFilesPath1 = document.getElementById("soundFilesPath1").value;
|
|
380
|
+
par.tempoMax = document.getElementById("tempoMax").value;
|
|
381
|
+
par.tempoMin = document.getElementById("tempoMin").value;
|
|
382
|
+
par.limiteDureeAttente = document.getElementById("limiteDureeAttente").value;
|
|
383
|
+
par.playBufferMessage = document.getElementById("playBufferMessage").value;
|
|
384
|
+
par.raspOSCPort = document.getElementById("raspOSCPort").value;
|
|
385
|
+
par.nbeDeGroupesClients = document.getElementById("nbeDeGroupesClients").value;
|
|
386
|
+
par.timer = document.getElementById("timer").value;
|
|
387
|
+
par.algoGestionFifo = document.getElementById("algoGestionFifo").value;
|
|
388
|
+
|
|
389
|
+
console.log("****", _typeof(document.getElementById("sensorInit1").value));
|
|
390
|
+
|
|
391
|
+
if (document.getElementById("sensorInit1").value !== '') {
|
|
392
|
+
par.tempoSensorsInit[0] = document.getElementById("sensorInit1").value;
|
|
393
|
+
par.tempoSensorsInit[1] = document.getElementById("sensorInit2").value;
|
|
394
|
+
par.tempoSensorsInit[2] = document.getElementById("sensorInit3").value;
|
|
395
|
+
par.tempoSensorsInit[3] = document.getElementById("sensorInit4").value;
|
|
396
|
+
par.tempoSensorsInit[4] = document.getElementById("sensorInit5").value;
|
|
397
|
+
par.tempoSensorsInit[5] = document.getElementById("sensorInit6").value;
|
|
398
|
+
par.tempoSensorsInit[6] = document.getElementById("sensorInit7").value;
|
|
399
|
+
par.tempoSensorsInit[7] = document.getElementById("sensorInit8").value;
|
|
400
|
+
par.tempoSensorsInit[8] = document.getElementById("sensorInit9").value;
|
|
401
|
+
par.tempoSensorsInit[9] = document.getElementById("sensorInit10").value;
|
|
402
|
+
par.tempoSensorsInit[10] = document.getElementById("sensorInit11").value;
|
|
403
|
+
par.tempoSensorsInit[11] = document.getElementById("sensorInit12").value;
|
|
404
|
+
} else {
|
|
405
|
+
par.tempoSensorsInit = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (document.getElementById("sensorSensibily1").value !== '') {
|
|
409
|
+
par.sensorsSensibilities[0] = document.getElementById("sensorSensibily1").value;
|
|
410
|
+
par.sensorsSensibilities[1] = document.getElementById("sensorSensibily2").value;
|
|
411
|
+
par.sensorsSensibilities[2] = document.getElementById("sensorSensibily3").value;
|
|
412
|
+
par.sensorsSensibilities[3] = document.getElementById("sensorSensibily4").value;
|
|
413
|
+
par.sensorsSensibilities[4] = document.getElementById("sensorSensibily5").value;
|
|
414
|
+
par.sensorsSensibilities[5] = document.getElementById("sensorSensibily6").value;
|
|
415
|
+
par.sensorsSensibilities[6] = document.getElementById("sensorSensibily7").value;
|
|
416
|
+
par.sensorsSensibilities[7] = document.getElementById("sensorSensibily8").value;
|
|
417
|
+
par.sensorsSensibilities[8] = document.getElementById("sensorSensibily9").value;
|
|
418
|
+
par.sensorsSensibilities[9] = document.getElementById("sensorSensibily10").value;
|
|
419
|
+
par.sensorsSensibilities[10] = document.getElementById("sensorSensibily11").value;
|
|
420
|
+
par.sensorsSensibilities[11] = document.getElementById("sensorSensibily12").value;
|
|
421
|
+
} else {
|
|
422
|
+
par.sensorsSensibilities = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
var msg = {
|
|
426
|
+
type: "updateParameters",
|
|
427
|
+
data: par
|
|
428
|
+
};
|
|
429
|
+
ws.send(JSON.stringify(msg));
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
_this.options = props.options;
|
|
433
|
+
_this.wrapper = React.createRef();
|
|
434
|
+
return _this;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
_createClass(Jspreadsheet, [{
|
|
438
|
+
key: "render",
|
|
439
|
+
value: function render() {
|
|
440
|
+
var _this2 = this;
|
|
441
|
+
|
|
442
|
+
return React.createElement(
|
|
443
|
+
"div",
|
|
444
|
+
null,
|
|
445
|
+
React.createElement("div", { ref: this.wrapper }),
|
|
446
|
+
React.createElement("br", null),
|
|
447
|
+
React.createElement("input", {
|
|
448
|
+
className: "button",
|
|
449
|
+
type: "button",
|
|
450
|
+
value: "Add new row",
|
|
451
|
+
onClick: function onClick() {
|
|
452
|
+
return _this2.addRow();
|
|
453
|
+
}
|
|
454
|
+
}),
|
|
455
|
+
React.createElement("input", {
|
|
456
|
+
className: "button",
|
|
457
|
+
type: "button",
|
|
458
|
+
value: "Update parameters",
|
|
459
|
+
onClick: function onClick() {
|
|
460
|
+
updateParameters();
|
|
461
|
+
_this2.updateAll();
|
|
462
|
+
}
|
|
463
|
+
})
|
|
464
|
+
);
|
|
465
|
+
}
|
|
466
|
+
}]);
|
|
467
|
+
|
|
468
|
+
return Jspreadsheet;
|
|
469
|
+
}(React.Component);
|
|
470
|
+
|
|
471
|
+
/*
|
|
472
|
+
let domContainer = document.querySelector('#like_button_container');
|
|
473
|
+
ReactDOM.render(<LikeButton />, domContainer);
|
|
474
|
+
*/
|
|
475
|
+
},{"../../serveur/ipConfig.json":2}],2:[function(require,module,exports){
|
|
476
|
+
module.exports={
|
|
477
|
+
"remoteIPAddressImage": "192.168.1.251",
|
|
478
|
+
"remoteIPAddressSound": "192.168.1.251",
|
|
479
|
+
"remoteIPAddressLumiere": "localhost",
|
|
480
|
+
"remoteIPAddressGame": "192.168.1.251",
|
|
481
|
+
"interfaceZIPaddress": "192.168.1.250",
|
|
482
|
+
"serverIPAddress": "192.168.1.251",
|
|
483
|
+
"webserveurPort": 8080,
|
|
484
|
+
"websocketServeurPort": 8383,
|
|
485
|
+
"InPortOSCMIDIfromDAW": 13000,
|
|
486
|
+
"OutPortOSCMIDItoDAW": 12000,
|
|
487
|
+
"portOSCToGame": 1010,
|
|
488
|
+
"portOSCFromGame": 3010,
|
|
489
|
+
"portOSCFromInterfaceZData": 3005,
|
|
490
|
+
"portOSCFromInterfaceZMidi": 3006,
|
|
491
|
+
"portOSCToInterfaceZ": 1000,
|
|
492
|
+
"distribSequencerPort": 8888,
|
|
493
|
+
"outportProcessing": 10000,
|
|
494
|
+
"outportLumiere": 7700,
|
|
495
|
+
"inportLumiere": 9000,
|
|
496
|
+
"sessionPath": "./pieces/",
|
|
497
|
+
"piecePath" : "./pieces/"
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
},{}]},{},[1]);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
input.vertical {
|
|
2
|
+
webkit-appearance: slider-vertical;
|
|
3
|
+
writing-mode: bt-lr;
|
|
4
|
+
width: 50px;
|
|
5
|
+
height:100px;
|
|
6
|
+
border-radius: 10%;
|
|
7
|
+
background: #ddd;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.button {
|
|
11
|
+
background-color: #4CAF50; /* Green */
|
|
12
|
+
border: none;
|
|
13
|
+
color: white;
|
|
14
|
+
text-align: center;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
border-radius: 4px;
|
|
19
|
+
width:150px;
|
|
20
|
+
height:30px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.button:active {
|
|
24
|
+
background-color: #3e8e41;
|
|
25
|
+
box-shadow: 0 5px #666;
|
|
26
|
+
transform: translateY(4px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.button1 {
|
|
30
|
+
background-color: #CF1919; /* red */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.button2 {
|
|
34
|
+
background-color: #008CBA; /* Blue */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.buttonClip {
|
|
38
|
+
background-color: #4CAF50; /* Green */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
body {
|
|
43
|
+
margin: 0 auto;
|
|
44
|
+
background-color: white;
|
|
45
|
+
padding: 0 20px 20px 20px;
|
|
46
|
+
font-size: 30px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#numClip {
|
|
50
|
+
border-radius: 4px;
|
|
51
|
+
text-align: center;
|
|
52
|
+
width:150px;
|
|
53
|
+
height:30px;
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#numCC {
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
text-align: center;
|
|
60
|
+
width:150px;
|
|
61
|
+
height:30px;
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#valueCC {
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
width:150px;
|
|
69
|
+
height:30px;
|
|
70
|
+
font-size: 12px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#IpOSC {
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
width:150px;
|
|
77
|
+
height:30px;
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#messageOSC {
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
text-align: center;
|
|
84
|
+
width:150px;
|
|
85
|
+
height:30px;
|
|
86
|
+
font-size: 12px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#val1OSC {
|
|
90
|
+
border-radius: 4px;
|
|
91
|
+
text-align: center;
|
|
92
|
+
width:150px;
|
|
93
|
+
height:30px;
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.inputText {
|
|
98
|
+
text-align: center;
|
|
99
|
+
width:100px;
|
|
100
|
+
height:20px;
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.info{
|
|
105
|
+
font-size: 20px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.sensorParam{
|
|
109
|
+
font-size: 20px;
|
|
110
|
+
width:70px;
|
|
111
|
+
}
|