Skip to content

Commit

Permalink
feat: add CHANNEL_INPUT_GAIN in mixer protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Jun 8, 2020
1 parent 0dac1e7 commit 729dcb5
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/constants/MixerProtocolInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface IChannelTypes {
channelTypeName: string
channelTypeColor: string
fromMixer: {
CHANNEL_INPUT_GAIN: Array<IMixerMessageProtocol>
CHANNEL_OUT_GAIN: Array<IMixerMessageProtocol>
CHANNEL_VU: Array<IMixerMessageProtocol>
CHANNEL_VU_REDUCTION: Array<IMixerMessageProtocol>
Expand All @@ -49,6 +50,7 @@ export interface IChannelTypes {
CHANNEL_MUTE_OFF: Array<IMixerMessageProtocol>
}
toMixer: {
CHANNEL_INPUT_GAIN: Array<IMixerMessageProtocol>
CHANNEL_OUT_GAIN: Array<IMixerMessageProtocol>
CHANNEL_NAME: Array<IMixerMessageProtocol>
PFL_ON: Array<IMixerMessageProtocol>
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/DmxIs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const DMXIS: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#3f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/dmxis/ch/{channel}',
Expand Down Expand Up @@ -43,6 +44,7 @@ export const DMXIS: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/dmxis/ch/{channel}',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/LawoMC2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const LawoMC2: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -53,6 +54,7 @@ export const LawoMC2: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/LawoRelayVrx4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const LawoRelayVrx4: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -53,6 +54,7 @@ export const LawoRelayVrx4: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/LawoRuby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const LawoRuby: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -53,6 +54,7 @@ export const LawoRuby: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/SSLsystemT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const SSLSystemT: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [emptyMixerMessage()], // Handled by SSLMixerconnection
CHANNEL_VU: [emptyMixerMessage()], // Not implemented in SSL Automation protocol yet
CHANNEL_VU_REDUCTION: [emptyMixerMessage()],
Expand Down Expand Up @@ -52,6 +53,7 @@ export const SSLSystemT: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: 'f1 06 00 80 00 {channel} {level}',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/StuderOnAirEmber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const StuderOnAirMaster: IMixerProtocol = {
channelTypeName: 'MONO',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -154,6 +155,7 @@ CH 96:7f 8f ff fe d9 5c 80 30 80 a4 19 31 17 a1 15 31 13 bf 60 10 31 0e a6 0c 31
*/

toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down
6 changes: 6 additions & 0 deletions server/constants/mixerProtocols/StuderVistaEmber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const StuderVistaMaster: IMixerProtocol = {
channelTypeName: 'MONO',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: 'a1 a1 {ch-type} {channel} a1 a2 e1',
Expand Down Expand Up @@ -111,6 +112,7 @@ export const StuderVistaMaster: IMixerProtocol = {
],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
// 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 {a3} 15 31 13 a1 11 31 0f a2 0d 31 0b e1 09 31 07 63 {05 09 03 c0 06 13 00 00 00 00}
Expand Down Expand Up @@ -184,6 +186,7 @@ export const StuderVistaMaster: IMixerProtocol = {
channelTypeName: 'ST',
channelTypeColor: '#3f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -222,6 +225,7 @@ export const StuderVistaMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
// 7f 8f ff fe d9 5c 80 30 80 a1 25 31 23 a1 21 31 1f a1 1d 31 1b a2 19 31 17 b9 15 31 13 a1 11 31 0f a2 0d 31 0b e1 09 31 07 63 05 09 03 80 03 05 00 00 00 00
Expand Down Expand Up @@ -294,6 +298,7 @@ export const StuderVistaMaster: IMixerProtocol = {
channelTypeName: 'Inp X',
channelTypeColor: '#2f3f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -332,6 +337,7 @@ export const StuderVistaMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/ardourMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const ArdourMaster: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/strip/fader/{channel}',
Expand Down Expand Up @@ -88,6 +89,7 @@ export const ArdourMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/strip/fader/{channel}',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/behringerXrMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const BehringerXrMaster: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
Expand Down Expand Up @@ -267,6 +268,7 @@ export const BehringerXrMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/casparCGMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ let CasparCGMasterObject: ICasparCGMixerGeometry = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: 'none',
Expand Down Expand Up @@ -161,6 +162,7 @@ let CasparCGMasterObject: ICasparCGMixerGeometry = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: 'none',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/genericMidi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const GenericMidi: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '0',
Expand Down Expand Up @@ -52,6 +53,7 @@ export const GenericMidi: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '38',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/midasMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const MidasMaster: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
Expand Down Expand Up @@ -250,6 +251,7 @@ export const MidasMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
Expand Down
4 changes: 4 additions & 0 deletions server/constants/mixerProtocols/reaperMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const ReaperMaster: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/track/{channel}/volume',
Expand Down Expand Up @@ -61,6 +62,7 @@ export const ReaperMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/track/{channel}/volume',
Expand Down Expand Up @@ -118,6 +120,7 @@ export const ReaperMaster: IMixerProtocol = {
channelTypeName: 'MASTER',
channelTypeColor: '#0f0f3f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/master/volume',
Expand Down Expand Up @@ -162,6 +165,7 @@ export const ReaperMaster: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/master/volume',
Expand Down
2 changes: 2 additions & 0 deletions server/constants/mixerProtocols/yamahaQLCL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const YamahaQLCL: IMixerProtocol = {
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down Expand Up @@ -73,6 +74,7 @@ export const YamahaQLCL: IMixerProtocol = {
CHANNEL_MUTE_OFF: [emptyMixerMessage()],
},
toMixer: {
CHANNEL_INPUT_GAIN: [emptyMixerMessage()],
CHANNEL_OUT_GAIN: [
{
mixerMessage:
Expand Down

0 comments on commit 729dcb5

Please sign in to comment.