Skip to content

Commit

Permalink
feat: implemented Lawo MC2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Sep 16, 2020
1 parent b19b2ca commit e78d2c4
Show file tree
Hide file tree
Showing 4 changed files with 729 additions and 146 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"bufferutil": "^4.0.1",
"casparcg-connection": "^4.9.0",
"classnames": "^2.2.6",
"emberplus-connection": "^0.0.3-nightly-20200622-114815-88534e2.0",
"emberplus-connection": "^0.0.3",
"express": "^4.17.1",
"express-csp-header": "^3.0.0",
"http": "^0.0.0",
Expand Down
168 changes: 126 additions & 42 deletions 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 - NOT IMPLEMENTED',
label: 'Lawo MC2',
presetFileExtension: '',
loadPresetCommand: [emptyMixerMessage()],
FADE_DISPATCH_RESOLUTION: 5,
Expand All @@ -19,81 +19,165 @@ export const LawoMC2: IMixerProtocol = {
CHANNEL_OUT_GAIN: [
{
mixerMessage:
'Ruby.Sources.${channel}.Fader.Motor dB Value',
'Channels.Inputs.${channel}.Fader.Fader Level',
value: 0,
type: 'real',
min: -191,
max: 9,
min: -128,
max: 12,
zero: 0,
},
],
CHANNEL_VU: [emptyMixerMessage()],
CHANNEL_VU_REDUCTION: [emptyMixerMessage()],
CHANNEL_NAME: [
{
mixerMessage: '',
mixerMessage:
'Channels.Inputs.${channel}.General.Inherited Label',
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()],
CHANNEL_INPUT_GAIN: [
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Gain',
value: 0,
type: 'int',
min: -128,
max: 12,
zero: 0,
},
],
CHANNEL_INPUT_SELECTOR: [
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Left to Both',
value: 0,
type: 'bool',
label: 'LR',
},
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Left to Both',
value: true,
type: 'bool',
label: 'LL',
},
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Right to Both',
value: true,
type: 'bool',
label: 'RR',
},
],
PFL: [
{
mixerMessage: 'Channels.Inputs.${channel}.Listen.PFL',
value: 0,
type: 'boolean',
min: -128,
max: 12,
zero: 0,
},
],
CHANNEL_AMIX: [
{
mixerMessage:
'Channels.Inputs.${channel}.Automix.Automix Active',
value: false,
type: 'boolean',
min: -128,
max: 12,
zero: 0,
},
],
},
toMixer: {
CHANNEL_OUT_GAIN: [
{
mixerMessage:
'Ruby.Sources.${channel}.Fader.Motor dB Value',
'Channels.Inputs.${channel}.Fader.Fader Level',
value: 0,
type: 'real',
min: -191,
max: 9,
min: -128,
max: 12,
zero: 0,
},
],
CHANNEL_NAME: [
CHANNEL_INPUT_GAIN: [
{
mixerMessage: '',
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Gain',
value: 0,
type: 'real',
min: -200,
max: 20,
type: 'int',
min: -128,
max: 12,
zero: 0,
},
],
CHANNEL_INPUT_SELECTOR: [
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Left to Both',
value: 0,
type: 'bool',
label: 'LR',
},
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Left to Both',
value: 1,
type: 'bool',
label: 'LL',
},
{
mixerMessage:
'Channels.Inputs.${channel}.Signal Processing.Input Mixer.Input Right to Both',
value: 1,
type: 'bool',
label: 'RR',
},
],
PFL_ON: [
{
mixerMessage: 'Channels.Inputs.${channel}.Listen.PFL',
value: true,
type: 'boolean',
min: -128,
max: 12,
zero: 0,
},
],
PFL_OFF: [
{
mixerMessage: 'Channels.Inputs.${channel}.Listen.PFL',
value: false,
type: 'boolean',
min: -128,
max: 12,
zero: 0,
},
],
CHANNEL_AMIX: [
{
mixerMessage:
'Channels.Inputs.${channel}.Automix.Automix Active',
value: false,
type: 'boolean',
min: -128,
max: 12,
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,
max: 1,
zero: 0.75,
step: 10,
},
meter: {
Expand Down
Loading

0 comments on commit e78d2c4

Please sign in to comment.