浏览代码

half delivery

eLandon 4 年之前
父节点
当前提交
dde14058c5
共有 3 个文件被更改,包括 14 次插入2 次删除
  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={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()
 {
 	//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==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==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;
 }
 
@@ -86,6 +91,13 @@ function scriptParameterChanged(param)
 	if (param.is(zoom_midi.value) ){feedbackMidi(zoom_midi);}
 	if (param.is(focus_midi.value) ){feedbackMidi(focus_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.
 	// 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()

+ 1 - 1
soft/DMXlyre.js

@@ -24,7 +24,7 @@ function defaultState(){
 	local.send(8, 0); // COLOR
 	local.send(11, 0); // STATIC 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
 }
 

文件差异内容过多而无法显示
+ 1 - 1
soft/lyreCam.noisette