-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
306 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
import RgbParam from '/libs/fivetwelve/lib/param/RgbParam.js' | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
import MappedParam from '/libs/fivetwelve/lib/param/MappedParam.js' | ||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class AdjSweeperBeamQuadLed extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign({}, options, { | ||
params: { | ||
tilt: new RangeParam(1, { min: 0, max: 255 }), | ||
tiltMacro: new RangeParam(2, { min: 0, max: 255 }), | ||
tiltMacroSpeed: new RangeParam(3, { min: 0, max: 255 }), | ||
chase: new MappedParam(4, AdjSweeperBeamQuadLed.CHASES), | ||
chaseSpeed: new RangeParam(5, { min: 0, max: 255 }), | ||
dimmer: new RangeParam(6, { min: 0, max: 255 }), | ||
strobe: new RangeParam(7, { min: 0, max: 255 }), | ||
|
||
led1: { | ||
color: new RgbParam([8, 9, 10]), | ||
white: new RangeParam(11, { min: 0, max: 255 }) | ||
}, | ||
|
||
led2: { | ||
color: new RgbParam([12, 13, 14]), | ||
white: new RangeParam(15, { min: 0, max: 255 }) | ||
}, | ||
|
||
led3: { | ||
color: new RgbParam([16, 17, 18]), | ||
white: new RangeParam(19, { min: 0, max: 255 }) | ||
}, | ||
|
||
led4: { | ||
color: new RgbParam([20, 21, 22]), | ||
white: new RangeParam(23, { min: 0, max: 255 }) | ||
}, | ||
|
||
led5: { | ||
color: new RgbParam([24, 25, 26]), | ||
white: new RangeParam(27, { min: 0, max: 255 }) | ||
}, | ||
|
||
led6: { | ||
color: new RgbParam([28, 29, 30]), | ||
white: new RangeParam(31, { min: 0, max: 255 }) | ||
}, | ||
|
||
led7: { | ||
color: new RgbParam([32, 33, 34]), | ||
white: new RangeParam(35, { min: 0, max: 255 }) | ||
}, | ||
|
||
led8: { | ||
color: new RgbParam([36, 37, 38]), | ||
white: new RangeParam(39, { min: 0, max: 255 }) | ||
} | ||
} | ||
})) | ||
|
||
this.layout = {} | ||
this.layout.width = 8 | ||
this.layout.height = 1 | ||
|
||
this.channels = 39 | ||
this.weight = 6.3 | ||
} | ||
|
||
/* | ||
* Set Color on all LEDs at once | ||
*/ | ||
set color(value) { | ||
this.led1.color = value | ||
this.led2.color = value | ||
this.led3.color = value | ||
this.led4.color = value | ||
this.led5.color = value | ||
this.led6.color = value | ||
this.led7.color = value | ||
this.led8.color = value | ||
} | ||
|
||
/* | ||
* Set white on all LEDs at once | ||
*/ | ||
set white(value) { | ||
this.led1.white = value | ||
this.led2.white = value | ||
this.led3.white = value | ||
this.led4.white = value | ||
this.led5.white = value | ||
this.led6.white = value | ||
this.led7.white = value | ||
this.led8.white = value | ||
} | ||
} | ||
|
||
AdjSweeperBeamQuadLed.CHASES = { | ||
off: [0, 7], | ||
chase1: [8, 22], | ||
chase2: [23, 37], | ||
chase3: [38, 52], | ||
chase4: [53, 67], | ||
chase5: [68, 82], | ||
chase6: [83, 97], | ||
chase7: [98, 112], | ||
chase8: [113, 127], | ||
chase9: [128, 142], | ||
chase10: [143, 157], | ||
chase11: [158, 172], | ||
chase12: [173, 187], | ||
chase13: [188, 202], | ||
chase14: [203, 217], | ||
chase15: [218, 232], | ||
chase16: [233, 247], | ||
full: [248, 255], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class BasicDimmer extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign({}, options, { | ||
params: { | ||
dimmer: new RangeParam(1, { min: 0, max: 255 }), | ||
} | ||
})) | ||
|
||
this.layout = {} | ||
this.layout.width = 1 | ||
this.layout.height = 1 | ||
|
||
this.channels = 1 | ||
this.weight = 1.2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import RgbParam from '/libs/fivetwelve/lib/param/RgbParam.js' | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
import MultiRangeParam from '/libs/fivetwelve/lib/param/MultiRangeParam.js' | ||
import HiResParam from '/libs/fivetwelve/lib/param/HiResParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
/* | ||
* @see https://www.thomann.de/gb/eurolite_led_tmh7_moving_head_wash.htm | ||
*/ | ||
export default class EuroliteTMH8 extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign(options, { | ||
params: { | ||
pan: new HiResParam([1, 10], { min: -270, max: 270 }), | ||
tilt: new HiResParam([2, 11], { min: -135, max: 135 }), | ||
speed: new RangeParam(3, { min: 0, max: 255 }), | ||
color: new RgbParam([4, 5, 6]), | ||
// colorMacro: 7 | ||
brightness: new MultiRangeParam(8, { | ||
dimmer: { range: [11, 20], values: [0, 255] }, | ||
strobe: { range: [31, 200], values: [0, 255] } | ||
}), | ||
|
||
dimmer: new RangeParam(9, { min: 0, max: 255 }) | ||
} | ||
})) | ||
|
||
this.channels = 11 | ||
this.weight = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class LTHLedParCob250w extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign(options, { | ||
params: { | ||
dimmer: new RangeParam(1, { min: 0, max: 255 }), | ||
strobe: new RangeParam(2, { min: 0, max: 255 }), | ||
white1: new RangeParam(3, { min: 0, max: 255 }), | ||
white2: new RangeParam(4, { min: 0, max: 255 }), | ||
white3: new RangeParam(5, { min: 0, max: 255 }), | ||
white4: new RangeParam(6, { min: 0, max: 255 }), | ||
white5: new RangeParam(7, { min: 0, max: 255 }) | ||
} | ||
})) | ||
|
||
this.channels = 7 | ||
this.weight = 3.8 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
import MappedParam from '/libs/fivetwelve/lib/param/MappedParam.js' | ||
import HiResParam from '/libs/fivetwelve/lib/param/HiResParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class RobeColorWash575EAt1_4 extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign(options, { | ||
params: { | ||
pan: new HiResParam([1, 2], { min: -265, max: 265 }), | ||
tilt: new HiResParam([3, 4], { min: -140, max: 140 }), | ||
speed: new RangeParam(5, { min: 0, max: 255 }), | ||
// Power/Special functions 6 | ||
panTiltMacro: new MappedParam(7, RobeColorWash575EAt1_4.PANTILTMACRO), | ||
panTiltMacroSpeed: new RangeParam(8, { min: 0, max: 255 }), | ||
// colorWheel1 9 | ||
// colorWheel2 10 | ||
gobo: new MappedParam(11, RobeColorWash575EAt1_4.GOBOS), | ||
goboWheelRotating: new RangeParam(12, { min: 0, max: 255 }), | ||
goboRotation: new RangeParam(13, { min: 0, max: 255 }), | ||
prism: new RangeParam(14, { min: 0, max: 255 }), | ||
prismRotation: new RangeParam(15, { min: 0, max: 255 }), | ||
frost: new RangeParam(16, { min: 0, max: 255 }), | ||
iris: new RangeParam(17, { min: 0, max: 255 }), | ||
zoom: new RangeParam(18, { min: 0, max: 255 }), | ||
focus: new RangeParam(19, { min: 0, max: 255 }), | ||
strobe: new RangeParam(20, { min: 0, max: 255 }), | ||
dimmer: new RangeParam(21, { min: 0, max: 255 }) | ||
} | ||
})) | ||
|
||
this.channels = 21 | ||
this.weight = 3 | ||
} | ||
} | ||
|
||
RobeColorWash575EAt1_4.PANTILTMACRO = { | ||
off: [0, 9], | ||
circle: [32, 63], | ||
horizontalEight: [64, 95], | ||
verticalEight: [96, 127], | ||
rectangle: [128, 159], | ||
triangle: [160, 191], | ||
fivePointedStar: [192, 223], | ||
cross: [224, 255] | ||
} | ||
RobeColorWash575EAt1_4.GOBOS = { | ||
open: [0, 1], | ||
gobo1: [7, 8], | ||
gobo2: [13, 14], | ||
gobo3: [19, 20], | ||
gobo4: [26, 27], | ||
gobo5: [32, 33], | ||
gobo6: [39, 40], | ||
gobo7: [45, 46], | ||
gobo8: [51, 52], | ||
gobo9: [64, 65] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import RgbParam from '/libs/fivetwelve/lib/param/RgbParam.js' | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class SgmXC5 extends DmxDevice { | ||
constructor(options) { | ||
super(Object.assign(options, { | ||
params: { | ||
strobe: new RangeParam(1, { min: 0, max: 255 }), | ||
color: new RgbParam([2, 3, 4]), | ||
strobeDuration: new RangeParam(5, { min: 0, max: 255 }), | ||
strobeRate: new RangeParam(6, { min: 0, max: 255 }) | ||
// strobeEffect 7 | ||
} | ||
})) | ||
|
||
this.channels = 7 | ||
this.weight = 3 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import RangeParam from '/libs/fivetwelve/lib/param/RangeParam.js' | ||
|
||
import DmxDevice from './DmxDevice.js' | ||
|
||
export default class TourHazerII extends DmxDevice { | ||
constructor(options) { | ||
options.params = { | ||
pump: new RangeParam(1, { min: 0, max: 255 }), | ||
fan: new RangeParam(2, { min: 0, max: 255 }) | ||
} | ||
super(options) | ||
|
||
this.channels = 2 | ||
this.weight = 14.5 | ||
} | ||
} |