Skip to content

Commit

Permalink
Feat: Protocol for DMXIS lightcontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Aug 7, 2019
1 parent 504440f commit 0c9cb1f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constants/MixerProtocolPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { MidasMaster } from './mixerProtocols/midasMaster';
import { GenericMidi } from './mixerProtocols/genericMidi';
import { LawoClient } from './mixerProtocols/EmberLawo';
import { CasparCGMaster } from './mixerProtocols/casparCGMaster';
import { DMXIS } from './mixerProtocols/DmxIs';

interface IMessageProtocol {
mixerMessage: string,
Expand All @@ -24,6 +25,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocolGeneric } = Ob
midasMaster: MidasMaster,
genericMidi: GenericMidi,
lawoClient: LawoClient,
dmxis: DMXIS,
}, CasparCGMaster !== undefined ? {
casparCGMaster: CasparCGMaster
} : {});
Expand Down
44 changes: 44 additions & 0 deletions src/constants/mixerProtocols/DmxIs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { IMixerProtocol, emptyMixerMessage } from '../MixerProtocolInterface';

export const DMXIS: IMixerProtocol = {
protocol: 'OSC',
label: 'DMXIS Light Controller Protocol',
mode: "master", //master (ignores mixers faderlevel, and use faderlevel as gain preset),
//client (use feedback from mixers fader level)
leadingZeros: false, //some OSC protocols needs channels to be 01, 02 etc.
pingCommand: [emptyMixerMessage()],
pingTime: 0, //Bypass ping when pingTime is zero
initializeCommands: [emptyMixerMessage()],
channelTypes: [{
channelTypeName: 'CH',
channelTypeColor: '#3f2f2f',
fromMixer: {
CHANNEL_FADER_LEVEL: [emptyMixerMessage()], //'none' ignores this command
CHANNEL_OUT_GAIN: [{ mixerMessage: '/dmxis/ch/{channel}', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
CHANNEL_VU: [emptyMixerMessage()],
CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
PFL: [emptyMixerMessage()],
AUX_SEND: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_FADER_LEVEL: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [{ mixerMessage: '/dmxis/ch/{channel}', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
CHANNEL_NAME: [{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
PFL_ON: [emptyMixerMessage()],
PFL_OFF: [emptyMixerMessage()],
AUX_SEND: [emptyMixerMessage()],
},
}],
fader: {
min: 0,
max: 1,
zero: 0.75,
step: 0.01,
},
meter: {
min: 0,
max: 1,
zero: 0.75,
test: 0.6,
},
}

0 comments on commit 0c9cb1f

Please sign in to comment.