Skip to content

Commit

Permalink
feat: LawoRuby - initial protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Feb 24, 2020
1 parent ad26a6b commit d96533d
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/constants/MixerProtocolPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { MidasMaster } from './mixerProtocols/midasMaster';
import { GenericMidi } from './mixerProtocols/genericMidi';
import { LawoRelayVrx4 } from './mixerProtocols/LawoRelayVrx4';
import { LawoMC2 } from './mixerProtocols/LawoMC2'
import { LawoRuby } from './mixerProtocols/LawoRuby'
import { CasparCGMaster } from './mixerProtocols/casparCGMaster';
import { DMXIS } from './mixerProtocols/DmxIs';
import { YamahaQLCL } from './mixerProtocols/yamahaQLCL'
Expand All @@ -27,6 +28,7 @@ export const MixerProtocolPresets: { [key: string]: IMixerProtocolGeneric } = Ob
genericMidi: GenericMidi,
lawoRelayVrx4: LawoRelayVrx4,
lawoMC2: LawoMC2,
lawoRuby: LawoRuby,
dmxis: DMXIS,
yamahaQlCl: YamahaQLCL,
sslSystemT: SSLSystemT,
Expand Down
2 changes: 1 addition & 1 deletion server/constants/mixerProtocols/LawoMC2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IMixerProtocol, emptyMixerMessage } from '../MixerProtocolInterface';

export const LawoMC2: IMixerProtocol = {
protocol: 'EMBER',
label: 'Lawo MC2',
label: 'Lawo MC2 - NOT IMPLEMENTED',
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.
Expand Down
97 changes: 97 additions & 0 deletions server/constants/mixerProtocols/LawoRuby.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
import { IMixerProtocol, emptyMixerMessage } from '../MixerProtocolInterface';

export const LawoRuby: IMixerProtocol = {
protocol: 'EMBER',
label: 'Lawo Ruby',
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()],
pingResponseCommand: [emptyMixerMessage()],
pingTime: 0, //Bypass ping when pingTime is zero
initializeCommands: [emptyMixerMessage()],
channelTypes: [{
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_FADER_LEVEL: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [{
mixerMessage: 'Ruby.Sources.${channel}.Fader.Motor dB Value',
value: 0,
type: 'real',
min: -191,
max: 9,
zero: 0
}],
CHANNEL_VU: [emptyMixerMessage()],
CHANNEL_NAME: [{
mixerMessage: '',
value: 0,
type: 'real',
min: -200,
max: 20,
zero: 0

}],
PFL: [emptyMixerMessage()],
NEXT_SEND: [emptyMixerMessage()],
THRESHOLD: [emptyMixerMessage()],
RATIO: [emptyMixerMessage()],
DELAY_TIME: [emptyMixerMessage()],
LOW: [emptyMixerMessage()],
LO_MID: [emptyMixerMessage()],
MID: [emptyMixerMessage()],
HIGH: [emptyMixerMessage()],
AUX_LEVEL: [emptyMixerMessage()],
CHANNEL_MUTE_ON: [emptyMixerMessage()],
CHANNEL_MUTE_OFF: [emptyMixerMessage()]
},
toMixer: {
CHANNEL_FADER_LEVEL: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [{
mixerMessage: 'Ruby.Sources.${channel}.Fader.Motor dB Value',
value: 0,
type: 'real',
min: -191,
max: 9,
zero: 0

}],
CHANNEL_NAME: [{
mixerMessage: '',
value: 0,
type: 'real',
min: -200,
max: 20,
zero: 0

}],
PFL_ON: [emptyMixerMessage()],
PFL_OFF: [emptyMixerMessage()],
NEXT_SEND: [emptyMixerMessage()],
THRESHOLD: [emptyMixerMessage()],
RATIO: [emptyMixerMessage()],
DELAY_TIME: [emptyMixerMessage()],
LOW: [emptyMixerMessage()],
LO_MID: [emptyMixerMessage()],
MID: [emptyMixerMessage()],
HIGH: [emptyMixerMessage()],
AUX_LEVEL: [emptyMixerMessage()],
CHANNEL_MUTE_ON: [emptyMixerMessage()],
CHANNEL_MUTE_OFF: [emptyMixerMessage()]
}
}],
fader: {
min: 0,
max: 200,
zero: 1300,
step: 10,
},
meter: {
min: 0,
max: 1,
zero: 0.75,
test: 0.6,
}
}

0 comments on commit d96533d

Please sign in to comment.