Changeset - a093a69067fb
[Not reviewed]
default
0 3 0
drewp@bigasterisk.com - 9 years ago 2016-06-12 20:58:19
drewp@bigasterisk.com
strobe support for quantum
Ignore-this: de605da71370bed0ff4a15d3898bf25b
3 files changed with 12 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/collector/device.py
Show inline comments
 
@@ -174,7 +174,6 @@ def toOutputAttrs(deviceType, deviceAttr
 
    elif deviceType == L9['MacQuantum']:
 
        out = {
 
            L9['dimmerFadeLo']: 0,
 
            L9['shutter']: 30, # strobe is in here too: slow @ 50 -> fast @ 200
 
            L9['fixtureControl']: 0,
 
            L9['fx1Select']:  0,
 
            L9['fx1Adjust']:  0,
 
@@ -207,6 +206,12 @@ def toOutputAttrs(deviceType, deviceAttr
 
        out[L9['goboSpeedHi']] = _8bit(x)
 
        out[L9['goboSpeedLo']] = _8bit((x * 255) % 1.0)
 
        
 
        strobe = floatAttr(L9['strobe'])
 
        if strobe < .1:
 
            out[L9['shutter']] = 30
 
        else:
 
            out[L9['shutter']] = 50 + int(150 * (strobe - .1) / .9)
 
        
 
        out.update( {
 
            L9['colorWheel']: 0,
 
            L9['goboStaticRotate']: 0,
show/dance2016/deviceClass.n3
Show inline comments
 
@@ -11,6 +11,8 @@
 
:focus              a :DeviceAttr; :dataType :scalar .
 
:iris               a :DeviceAttr; :dataType :scalar .
 
:prism              a :DeviceAttr; :dataType :scalar .
 
:strobe             a :DeviceAttr; :dataType :scalar;
 
  rdfs:comment "0=none, 1=fastest" .
 
:goboSpeed          a :DeviceAttr; :dataType :scalar ;
 
  rdfs:comment "0=stopped, 1=rotate the fastest".
 
:quantumGoboChoice  a :DeviceAttr; :dataType :choice;
 
@@ -108,9 +110,9 @@
 

	
 
:MacQuantum a :DeviceClass; 
 
  :docs <http://www.martin.com/Martin.Download.aspx?file=/files/files/productdocuments/11_MANUALS/999/35000279b%20UM_MACQuantumProfile_EN_B.pdf>;
 
  :deviceAttr :color, :rx, :ry, :zoom, :focus, :iris, :prism, :quantumGoboChoice, :goboSpeed;
 
  :deviceAttr :color, :rx, :ry, :zoom, :focus, :iris, :prism, :quantumGoboChoice, :goboSpeed, :strobe;
 
  :attr
 
    [ :dmxOffset 0; :outputAttr :shutter ; rdfs:comment "use 30" ],
 
    [ :dmxOffset 0; :outputAttr :shutter ],
 
    [ :dmxOffset 1; :outputAttr :dimmerFadeHi ],
 
    [ :dmxOffset 2; :outputAttr :dimmerFadeLo ],
 
    [ :dmxOffset 3; :outputAttr :cyan ],
show/dance2016/effect.n3
Show inline comments
 
@@ -21,6 +21,8 @@ effect:animRainbow a :Effect; rdfs:label
 
effect:orangeSearch a :Effect; :publishAttr :strength ; :group "anim".
 
effect:lightning a :Effect; :publishAttr :strength ; :group "anim".
 

	
 
effect:strobewarm :group "anim".
 

	
 
effect:house :group "main" .
 
effect:cyc :group "main" .
 

	
0 comments (0 inline, 0 general)