Skip to content

Commit

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

export const FIXTURE_PROPERTIES = ['color', 'dimmer', 'strobe', 'white',
Expand All @@ -106,7 +107,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', 'lime', 'dimmerSpeed'
'patternConstruction', 'colorSelection', 'amber', 'lime', 'dimmerSpeed', 'tiltSpeed'
]

export const MIDI_TYPE_BUTTON = 'Button'
Expand Down
4 changes: 3 additions & 1 deletion src/utils/dmx-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ 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'

export { default as InvolightSlimPar784 } from './dmx/InvolightSlimPar784.js'
export { default as InvolightMovingBar1808 } from './dmx/InvolightMovingBar1808.js'
export { default as BasicLedBar } from './dmx/BasicLedBar.js'
2 changes: 1 addition & 1 deletion src/utils/dmx/BasicDimmerStrobe.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class BasicDimmerStrobe extends DmxDevice {
super(Object.assign({}, options, {
params: {
dimmer: new RangeParam(1, { min: 0, max: 255 }),
strobe: new RangeParam(1, { min: 0, max: 255 })
strobe: new RangeParam(2, { min: 0, max: 255 })
}
}))

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

import DmxDevice from './DmxDevice.js'

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

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

this.channels = 6
this.weight = 0
}
}
28 changes: 28 additions & 0 deletions src/utils/dmx/InvolightMovingBar1808.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 InvolightMovingBar1808 extends DmxDevice {
constructor(options) {
super(Object.assign({}, options, {
params: {
tilt: new RangeParam(1, { min: 0, max: 255 }),
tiltSpeed: new RangeParam(2, { min: 0, max: 255 }),
// 3: Program
// 4: Program Speed
dimmer: new RangeParam(5, { min: 0, max: 255 }),
strobe: new RangeParam(6, { min: 0, max: 255 }),
color: new RgbParam([7, 8, 9]),
white: new RangeParam(10, { min: 0, max: 255 })
}
}))

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

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

import DmxDevice from './DmxDevice.js'

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

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

this.channels = 6
this.weight = 1.2
}
}

0 comments on commit d7beb4d

Please sign in to comment.