Skip to content

Commit

Permalink
feat: Studer support - basic level for OnAir3000
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Mar 24, 2020
1 parent 69c505f commit b7ca75f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
42 changes: 21 additions & 21 deletions server/constants/mixerProtocols/StuderVistaEmber.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { IMixerProtocol, emptyMixerMessage } from '../MixerProtocolInterface';

export const StuderVistaMaster: IMixerProtocol = {
protocol: 'EMBER',
protocol: 'STUDER',
label: 'Studer Vista - NOT WORKING',
mode: "master",
FADE_DISPATCH_RESOLUTION: 5,
FADE_DISPATCH_RESOLUTION: 50,
leadingZeros: false, //some OSC protocols needs channels to be 01, 02 etc.
pingCommand: [emptyMixerMessage()],
pingResponseCommand: [emptyMixerMessage()],
Expand All @@ -18,8 +18,8 @@ export const StuderVistaMaster: IMixerProtocol = {
mixerMessage: 'System/Mixer/Channels/Inp Mono/Inp Mono #{channel}/Functions/Fader/Value',
value: 0,
type: 'real',
min: -90,
max: 10,
min: 0,
max: 1000,
zero: 0
}],
CHANNEL_VU: [emptyMixerMessage()],
Expand All @@ -46,12 +46,12 @@ export const StuderVistaMaster: IMixerProtocol = {
},
toMixer: {
CHANNEL_OUT_GAIN: [{
mixerMessage: 'System/Mixer/Channels/Inp Mono/Inp Mono #{channel}/Functions/Fader/Value',
mixerMessage: 'A-4294946012/C-4/C-2/C-1/C-6/P-1/A-3', // 'System/Mixer/Channels/Inp Mono/Inp Mono #{channel}/Functions/Fader/Value',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0
min: 0,
max: 1000,
zero: 750

}],
CHANNEL_NAME: [{
Expand Down Expand Up @@ -85,9 +85,9 @@ export const StuderVistaMaster: IMixerProtocol = {
mixerMessage: 'System/Mixer/Channels/Inp Stereo/Inp Stereo #{channel}/Functions/Fader/Value',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0
min: 0,
max: 1000,
zero: 750
}],
CHANNEL_VU: [emptyMixerMessage()],
CHANNEL_NAME: [{
Expand Down Expand Up @@ -116,9 +116,9 @@ export const StuderVistaMaster: IMixerProtocol = {
mixerMessage: 'System/Mixer/Channels/Inp Stereo/Inp Stereo #{channel}/Functions/Fader/Value',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0
min: 0,
max: 1000,
zero: 750

}],
CHANNEL_NAME: [{
Expand Down Expand Up @@ -152,9 +152,9 @@ export const StuderVistaMaster: IMixerProtocol = {
mixerMessage: 'System/Mixer/Channels/Inp 5_1/Inp 5_1 #{channel}/Functions/Fader/Value',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0
min: 0,
max: 1000,
zero: 750
}],
CHANNEL_VU: [emptyMixerMessage()],
CHANNEL_NAME: [{
Expand Down Expand Up @@ -183,8 +183,8 @@ export const StuderVistaMaster: IMixerProtocol = {
mixerMessage: 'System/Mixer/Channels/Inp 5_1/Inp 5_1 #{channel}/Functions/Fader/Value',
value: 0,
type: 'real',
min: -90,
max: 10,
min: 0,
max: 1000,
zero: 0

}],
Expand Down Expand Up @@ -213,8 +213,8 @@ export const StuderVistaMaster: IMixerProtocol = {
}],
fader: {
min: 0,
max: 100,
zero: 70,
max: 1000,
zero: 750,
step: 1,
},
meter: {
Expand Down
3 changes: 3 additions & 0 deletions server/utils/MixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { MidiMixerConnection } from './mixerConnections/MidiMixerConnection';
import { QlClMixerConnection } from './mixerConnections/YamahaQlClConnection';
import { SSLMixerConnection } from './mixerConnections/SSLMixerConnection';
import { EmberMixerConnection } from './mixerConnections/EmberMixerConnection';
import { StuderMixerConnection } from './mixerConnections/StuderMixerConnection';
import { CasparCGConnection } from './mixerConnections/CasparCGConnection';
import { IChannel } from '../reducers/channelsReducer';
import { SET_OUTPUT_LEVEL, FADE_ACTIVE } from '../reducers/channelActions'
Expand Down Expand Up @@ -46,6 +47,8 @@ export class MixerGenericConnection {
this.mixerConnection = new CasparCGConnection(this.mixerProtocol as ICasparCGMixerGeometry);
} else if (this.mixerProtocol.protocol === 'EMBER') {
this.mixerConnection = new EmberMixerConnection(this.mixerProtocol as IMixerProtocol);
} else if (this.mixerProtocol.protocol === 'STUDER') {
this.mixerConnection = new StuderMixerConnection(this.mixerProtocol as IMixerProtocol);
} else if (this.mixerProtocol.protocol === 'SSL') {
this.mixerConnection = new SSLMixerConnection(this.mixerProtocol as IMixerProtocol);
}
Expand Down

0 comments on commit b7ca75f

Please sign in to comment.