Browse Source

half delivery

eLandon 4 years ago
parent
commit
dde14058c5
3 changed files with 14 additions and 2 deletions
  1. 12 0
      soft/BCF2000.js
  2. 1 1
      soft/DMXlyre.js
  3. 1 1
      soft/lyreCam.noisette

+ 12 - 0
soft/BCF2000.js

@@ -21,6 +21,9 @@ var focus_midi={channel:focus_midi_ch.get(), MSB:0, LSB:0, target:root.customVar
 var dimmer_midi_ch = script.addIntParameter("dimmer midi channel", "", 4);
 var dimmer_midi_ch = script.addIntParameter("dimmer midi channel", "", 4);
 var dimmer_midi={channel:dimmer_midi_ch.get(), MSB:0, LSB:0, target:root.customVariables.unitValues.variables.dimmer.dimmer, value: script.addFloatParameter("dimmer", "current dimmer value", 0., 0, 1)};
 var dimmer_midi={channel:dimmer_midi_ch.get(), MSB:0, LSB:0, target:root.customVariables.unitValues.variables.dimmer.dimmer, value: script.addFloatParameter("dimmer", "current dimmer value", 0., 0, 1)};
 
 
+var zoomCam_midi_ch = script.addIntParameter("zoomCam midi channel", "", 5);
+var zoomCam_midi={channel:zoomCam_midi_ch.get(), MSB:0, LSB:0, target:root.customVariables.unitValues.variables.zoomCam.zoomCam, value: script.addFloatParameter("zoomCam", "current camera zoom value", 0., 0, 1)};
+
 function init()
 function init()
 {
 {
 	//myFloatParam.set(5); //The .set() function set the parameter to this value.
 	//myFloatParam.set(5); //The .set() function set the parameter to this value.
@@ -51,6 +54,8 @@ function updateCC(cc, value){
 	if(cc==focus_midi.channel+32){focus_midi.LSB = value; return focus_midi;}
 	if(cc==focus_midi.channel+32){focus_midi.LSB = value; return focus_midi;}
 	if(cc==dimmer_midi.channel){dimmer_midi.MSB = value; return dimmer_midi;}
 	if(cc==dimmer_midi.channel){dimmer_midi.MSB = value; return dimmer_midi;}
 	if(cc==dimmer_midi.channel+32){dimmer_midi.LSB = value; return dimmer_midi;}
 	if(cc==dimmer_midi.channel+32){dimmer_midi.LSB = value; return dimmer_midi;}
+	if(cc==zoomCam_midi.channel){zoomCam_midi.MSB = value; return zoomCam_midi;}
+	if(cc==zoomCam_midi.channel+32){zoomCam_midi.LSB = value; return zoomCam_midi;}
 	else return 0;
 	else return 0;
 }
 }
 
 
@@ -86,6 +91,13 @@ function scriptParameterChanged(param)
 	if (param.is(zoom_midi.value) ){feedbackMidi(zoom_midi);}
 	if (param.is(zoom_midi.value) ){feedbackMidi(zoom_midi);}
 	if (param.is(focus_midi.value) ){feedbackMidi(focus_midi);}
 	if (param.is(focus_midi.value) ){feedbackMidi(focus_midi);}
 	if (param.is(dimmer_midi.value) ){feedbackMidi(dimmer_midi);}
 	if (param.is(dimmer_midi.value) ){feedbackMidi(dimmer_midi);}
+	if (param.is(zoomCam_midi.value) ){feedbackMidi(zoomCam_midi);}
+	if (param.is(pan_midi_ch)){pan_midi.channel = pan_midi_ch.get();}
+	if (param.is(tilt_midi_ch)){tilt_midi.channel = tilt_midi_ch.get();}
+	if (param.is(zoom_midi_ch)){zoom_midi.channel = zoom_midi_ch.get();}
+	if (param.is(focus_midi_ch)){focus_midi.channel = focus_midi_ch.get();}
+	if (param.is(dimmer_midi_ch)){dimmer_midi.channel = dimmer_midi_ch.get();}
+	if (param.is(zoomCam_midi_ch)){zoomCam_midi.channel = zoomCam_midi_ch.get();}
 	//You can use the script.log() function to show an information inside the logger panel. To be able to actuallt see it in the logger panel, you will have to turn on "Log" on this script.
 	//You can use the script.log() function to show an information inside the logger panel. To be able to actuallt see it in the logger panel, you will have to turn on "Log" on this script.
 	// script.log("Parameter changed : "+param.name); //All parameters have "name" property
 	// script.log("Parameter changed : "+param.name); //All parameters have "name" property
 	// if(param.is(myTrigger)) script.log("Trigger !"); //You can check if two variables are the reference to the same parameter or object with the method .is()
 	// if(param.is(myTrigger)) script.log("Trigger !"); //You can check if two variables are the reference to the same parameter or object with the method .is()

+ 1 - 1
soft/DMXlyre.js

@@ -24,7 +24,7 @@ function defaultState(){
 	local.send(8, 0); // COLOR
 	local.send(8, 0); // COLOR
 	local.send(11, 0); // STATIC GOBO
 	local.send(11, 0); // STATIC GOBO
 	local.send(9, 41); // ROTATING GOBO
 	local.send(9, 41); // ROTATING GOBO
-	local.send(10,13); // GOBO ROTATION
+	local.send(10,1); // GOBO ROTATION
 	local.send(5, 200); //SPEED LIMIT
 	local.send(5, 200); //SPEED LIMIT
 }
 }
 
 

File diff suppressed because it is too large
+ 1 - 1
soft/lyreCam.noisette