Skip to content

Commit 2aeebb2

Browse files
authored
Merge pull request #64 from olzzon/develop
DMXIS protocol
2 parents c8eec2e + 85f47c6 commit 2aeebb2

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ yarn start
6262
* OSC protocol for Behringer XR12,16,18
6363
* Port 10024
6464
* In this version the Behringer is slave of Producers-Audio-mixer, so faders on the behringer is turned down when channel is of.
65+
* DMXIS - Sisyfos control of DMX Lightcontroller
66+
* Default Port is 8000
67+
* Controls Fader On/Off with preset level from Sisyfos.
68+
* Easy implementation of state based lightcontrol from Automation.
6569
* midi
6670
* Generic MIDI - still preminilary
6771

src/constants/MixerProtocolPresets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MidasMaster } from './mixerProtocols/midasMaster';
66
import { GenericMidi } from './mixerProtocols/genericMidi';
77
import { LawoClient } from './mixerProtocols/EmberLawo';
88
import { CasparCGMaster } from './mixerProtocols/casparCGMaster';
9+
import { DMXIS } from './mixerProtocols/DmxIs';
910

1011
interface IMessageProtocol {
1112
mixerMessage: string,
@@ -24,6 +25,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocolGeneric } = Ob
2425
midasMaster: MidasMaster,
2526
genericMidi: GenericMidi,
2627
lawoClient: LawoClient,
28+
dmxis: DMXIS,
2729
}, CasparCGMaster !== undefined ? {
2830
casparCGMaster: CasparCGMaster
2931
} : {});

src/constants/mixerProtocols/DmxIs.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { IMixerProtocol, emptyMixerMessage } from '../MixerProtocolInterface';
2+
3+
export const DMXIS: IMixerProtocol = {
4+
protocol: 'OSC',
5+
label: 'DMXIS Light Controller Protocol',
6+
mode: "master", //master (ignores mixers faderlevel, and use faderlevel as gain preset),
7+
//client (use feedback from mixers fader level)
8+
leadingZeros: false, //some OSC protocols needs channels to be 01, 02 etc.
9+
pingCommand: [emptyMixerMessage()],
10+
pingTime: 0, //Bypass ping when pingTime is zero
11+
initializeCommands: [emptyMixerMessage()],
12+
channelTypes: [{
13+
channelTypeName: 'CH',
14+
channelTypeColor: '#3f2f2f',
15+
fromMixer: {
16+
CHANNEL_FADER_LEVEL: [emptyMixerMessage()], //'none' ignores this command
17+
CHANNEL_OUT_GAIN: [{ mixerMessage: '/dmxis/ch/{channel}', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
18+
CHANNEL_VU: [emptyMixerMessage()],
19+
CHANNEL_NAME: [emptyMixerMessage()],
20+
PFL: [emptyMixerMessage()],
21+
AUX_SEND: [emptyMixerMessage()],
22+
},
23+
toMixer: {
24+
CHANNEL_FADER_LEVEL: [emptyMixerMessage()],
25+
CHANNEL_OUT_GAIN: [{ mixerMessage: '/dmxis/ch/{channel}', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
26+
CHANNEL_NAME: [{ mixerMessage: '/dmxis/ch/name/{channel}', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
27+
PFL_ON: [emptyMixerMessage()],
28+
PFL_OFF: [emptyMixerMessage()],
29+
AUX_SEND: [emptyMixerMessage()],
30+
},
31+
}],
32+
fader: {
33+
min: 0,
34+
max: 1,
35+
zero: 0.75,
36+
step: 0.01,
37+
},
38+
meter: {
39+
min: 0,
40+
max: 1,
41+
zero: 0.75,
42+
test: 0.6,
43+
},
44+
}

0 commit comments

Comments
 (0)