Skip to content

Commit

Permalink
Merge pull request #64 from olzzon/develop
Browse files Browse the repository at this point in the history
DMXIS protocol
  • Loading branch information
olzzon authored Aug 7, 2019
2 parents c8eec2e + 85f47c6 commit 2aeebb2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ yarn start
* OSC protocol for Behringer XR12,16,18
* Port 10024
* In this version the Behringer is slave of Producers-Audio-mixer, so faders on the behringer is turned down when channel is of.
* DMXIS - Sisyfos control of DMX Lightcontroller
* Default Port is 8000
* Controls Fader On/Off with preset level from Sisyfos.
* Easy implementation of state based lightcontrol from Automation.
* midi
* Generic MIDI - still preminilary

Expand Down
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: [emptyMixerMessage()],
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: '/dmxis/ch/name/{channel}', 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 2aeebb2

Please sign in to comment.