Skip to content

Commit

Permalink
feat: vista preparing 2-way sopport
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed May 5, 2020
1 parent a4a1074 commit 6b6ec5a
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 34 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
]
},
"dependencies": {
"asn1": "github:evs-broadcast/node-asn1",
"casparcg-connection": "^4.9.0",
"classnames": "^2.2.6",
"express": "^4.17.1",
Expand Down
72 changes: 68 additions & 4 deletions server/constants/mixerProtocols/StuderVistaEmber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,40 @@ export const StuderVistaMaster: IMixerProtocol = {
channelTypeName: 'MONO',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_OUT_GAIN: [emptyMixerMessage()],
/*
Max mono 2:
29a1273125a1233121a11f311da21b3119a1173115a2133111e10f31
7f 8f ff fe d9 5c 80 30 80 a1 2b
31 29 a1 27
31 25 a1 23
31 21 a1 1f
31 1d a2 1b
31 19 a1 17
31 15 a2 13
31 11 e1 0f
31 0d 63 0b 09 09 80 02 0d cc cc cc cc cc cd 0 0 0 0
Min mono 2:
7f 8f ff fe d9 5c 80 30 80 a1 25
31 23 a1 21
31 1f a1 1d
31 1b a1 19
31 17 a2 15
31 13 a1 11
31 0f a2 0d
31 0b e1 09
31 07 63 05 09 03 c0 06 2d 00 00 00 00
*/
CHANNEL_OUT_GAIN: [
{
mixerMessage:
'a1 25 31 23 a1 21 31 1f a1 1d 31 1b a1 19 31 17 {channel} 15 31 13 a1 11 31 0f a2 0d 31 0b e1 09 31 07 63 {level}',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0,
},
],
CHANNEL_VU: [emptyMixerMessage()],
CHANNEL_VU_REDUCTION: [emptyMixerMessage()],
CHANNEL_NAME: [emptyMixerMessage()],
Expand All @@ -37,9 +70,40 @@ export const StuderVistaMaster: IMixerProtocol = {
LO_MID: [emptyMixerMessage()],
MID: [emptyMixerMessage()],
HIGH: [emptyMixerMessage()],
AUX_LEVEL: [emptyMixerMessage()],
CHANNEL_MUTE_ON: [emptyMixerMessage()],
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
AUX_LEVEL: [
{
mixerMessage:
'7f 8f ff fe d9 5c 80 30 80 a1 29 31 27 a1 25 31 23 a1 21 31 1f a1 1d 31 1b {channel} 19 31 17 a1 15 31 13 a4 11 31 0f {aux} 0d 31 0b e1 09 31 07 63 {argument}',
//'7f 8f ff fe d9 5c 80 30 80 a1 25 31 23 a1 21 31 1f a1 1d 31 1b a1 19 31 17 {channel} 15 31 13 a1 11 31 0f a2 0d 31 0b e1 09 31 07 63 {level}',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0,
},
],
CHANNEL_MUTE_ON: [
{
mixerMessage:
'7f 8f ff fe d9 5c 80 30 80 a1 23 31 21 a1 1f 31 1d a1 1b 31 19 a1 17 31 15 {channel} 13 31 11 a1 0f 31 0d a2 0b 31 09 e2 07 31 05 63 03 02 01 01 00 00 00 00',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0,
},
],
CHANNEL_MUTE_OFF: [
{
mixerMessage:
'7f 8f ff fe d9 5c 80 30 80 a1 23 31 21 a1 1f 31 1d a1 1b 31 19 a1 17 31 15 {channel} 13 31 11 a1 0f 31 0d a2 0b 31 09 e2 07 31 05 63 03 02 01 00 00 00 00 00',
value: 0,
type: 'real',
min: -90,
max: 10,
zero: 0,
},
],
},
toMixer: {
CHANNEL_OUT_GAIN: [
Expand Down
Loading

0 comments on commit 6b6ec5a

Please sign in to comment.