Skip to content

Commit

Permalink
feat(refreshconf): Added Showtec lights
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Nov 7, 2019
1 parent 44e3566 commit 5b85443
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const FIXTURE_TYPES = ['EuroliteTMH8', 'FunGenerationSeParQuadLedRgbUv',
'RobeRobin300LEDWash', 'BasicRGBW', 'BasicRGBDimmer', 'OppskPar', 'SolarStar2', 'BasicColorDimmableTransform',
'StairvilleWildWashPro648Rgb', 'DunarniaLedPar', 'LaserworldCs1000RgbMk2', 'BasicColorCMY',
'InvolightLedParSlim', 'InvolightLedPar64', 'BasicDimmerStrobe', 'InvolightLedPar170',
'CameoMovoBeamZ100', 'CameoMovoBeam100', 'CameoHydrabeam100RGBW'
'CameoMovoBeamZ100', 'CameoMovoBeam100', 'CameoHydrabeam100RGBW', 'ShowtecHelixQ4000', 'ShowtecPerformer2000'
]

export const FIXTURE_PROPERTIES = ['color', 'dimmer', 'strobe', 'white',
Expand All @@ -106,7 +106,7 @@ export const FIXTURE_PROPERTIES = ['color', 'dimmer', 'strobe', 'white',
'colorWheel', 'gobo1', 'gobo1Rotation', 'gobo2', 'gobo2Rotation', 'gobo3', 'gobo3Rotation',
'beamIris', 'focusTime', 'colorTime', 'beamTime', 'goboTime', 'control', 'shutter', 'auraShutter',
'auraDimmer', 'auraColor', 'beamColor', 'beamDimmer', 'beamShutter', 'circle', 'manualPosition', 'horizontal',
'patternConstruction', 'colorSelection', 'amber'
'patternConstruction', 'colorSelection', 'amber', 'lime', 'dimmerSpeed'
]

export const MIDI_TYPE_BUTTON = 'Button'
Expand Down
2 changes: 2 additions & 0 deletions src/utils/dmx-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ export { default as InvolightLedPar170 } from './dmx/InvolightLedPar170.js'
export { default as CameoMovoBeamZ100 } from './dmx/CameoMovoBeamZ100.js'
export { default as CameoMovoBeam100 } from './dmx/CameoMovoBeam100.js'
export { default as CameoHydrabeam100RGBW } from './dmx/CameoHydrabeam100RGBW.js'
export { default as ShowtecHelixQ4000 } from './dmx/ShowtecHelixQ4000.js'
export { default as ShowtecPerformer2000 } from './dmx/ShowtecPerformer2000.js'

22 changes: 22 additions & 0 deletions src/utils/dmx/ShowtecHelixQ4000.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import RgbParam from './param/RgbParam.js'
import RangeParam from 'fivetwelve/lib/param/RangeParam.js'

import DmxDevice from './DmxDevice.js'

export default class ShowtecHelixQ4000 extends DmxDevice {
constructor(options) {
super(Object.assign({}, options, {
params: {
color: new RgbParam([1, 2, 3]),
white: new RangeParam(4, { min: 0, max: 255 })
}
}))

this.layout = {}
this.layout.width = 1
this.layout.height = 1

this.channels = 4
this.weight = 0
}
}
28 changes: 28 additions & 0 deletions src/utils/dmx/ShowtecPerformer2000.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import RgbParam from './param/RgbParam.js'
import RangeParam from 'fivetwelve/lib/param/RangeParam.js'

import DmxDevice from './DmxDevice.js'

export default class ShowtecPerformer2000 extends DmxDevice {
constructor(options) {
super(Object.assign({}, options, {
params: {
dimmer: new RangeParam(1, { min: 0, max: 255 }),
color: new RgbParam([2, 3, 4]),
amber: new RangeParam(5, { min: 0, max: 255 }),
lime: new RangeParam(6, { min: 0, max: 255 }),
// 7: color presets
strobe: new RangeParam(8, { min: 0, max: 255 }),
zoom: new RangeParam(9, { min: 0, max: 255 }),
dimmerSpeed: new RangeParam(6, { min: 0, max: 255 })
}
}))

this.layout = {}
this.layout.width = 1
this.layout.height = 1

this.channels = 10
this.weight = 0
}
}

0 comments on commit 5b85443

Please sign in to comment.