Skip to content

Commit

Permalink
feat: Midas/Behringer X32 - mixer protocol cleanup - removed unused v…
Browse files Browse the repository at this point in the history
…ariables
  • Loading branch information
olzzon authored and olzzon committed Jun 10, 2020
1 parent 3981afc commit 71509ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 179 deletions.
1 change: 1 addition & 0 deletions server/constants/mixerProtocols/behringerXrMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const BehringerXrMaster: IMixerProtocol = {
},
{
mixerMessage: '/ch/{channel}/mix/{argument}/level',
type: 'aux',
},
{
mixerMessage: '/ch/{channel}/dyn/thr',
Expand Down
180 changes: 1 addition & 179 deletions server/constants/mixerProtocols/midasMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,124 +7,52 @@ export const MidasMaster: IMixerProtocol = {
loadPresetCommand: [
{
mixerMessage: '/load',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
FADE_DISPATCH_RESOLUTION: 5,
leadingZeros: true,
pingCommand: [
{
mixerMessage: '/xremote',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/meters',
value: '/meters/1',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
],
pingResponseCommand: [
{
mixerMessage: '/xremote',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
pingTime: 9500,
initializeCommands: [
{
mixerMessage: '/ch/{channel}/mix/fader',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/config/name',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/mix/{argument}/level',
value: '',
type: 'aux',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/dyn/thr',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/dyn/ratio',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/delay/time',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/eq/1/g',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/eq/2/g',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/eq/3/g',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
{
mixerMessage: '/ch/{channel}/eq/4/g',
value: '',
type: 's',
min: 0,
max: 1,
zero: 0.75,
},
],
channelTypes: [
Expand All @@ -135,115 +63,60 @@ export const MidasMaster: IMixerProtocol = {
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
CHANNEL_VU: [
{
mixerMessage: '/meters/1',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
CHANNEL_VU_REDUCTION: [emptyMixerMessage()],
CHANNEL_VU_REDUCTION: [emptyMixerMessage()], // Gain reduction is return toghter with CHANNEL_VU response
CHANNEL_NAME: [emptyMixerMessage()], //[{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
PFL: [emptyMixerMessage()],
NEXT_SEND: [emptyMixerMessage()],
THRESHOLD: [
{
mixerMessage: '/ch/{channel}/dyn/thr',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
RATIO: [
{
mixerMessage: '/ch/{channel}/dyn/ratio',
value: 0,
type: 'f',
min: 0,
max: 11,
zero: 0,
},
],
DELAY_TIME: [
{
mixerMessage: '/ch/{channel}/delay/time',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
LOW: [
{
mixerMessage: '/ch/{channel}/eq/1/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
LO_MID: [
{
mixerMessage: '/ch/{channel}/eq/2/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
MID: [
{
mixerMessage: '/ch/{channel}/eq/3/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
HIGH: [
{
mixerMessage: '/ch/{channel}/eq/4/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
AUX_LEVEL: [
{
mixerMessage: '/ch/{channel}/mix/{argument}/level',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
CHANNEL_MUTE_ON: [
{
mixerMessage: '/ch/{channel}/mix/on',
value: 0,
type: 'i',
min: 0,
max: 1,
zero: 0,
},
],
// Only MUTE_ON is used as receiver
Expand All @@ -253,11 +126,6 @@ export const MidasMaster: IMixerProtocol = {
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
CHANNEL_NAME: [emptyMixerMessage()], //[{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
Expand All @@ -267,101 +135,55 @@ export const MidasMaster: IMixerProtocol = {
THRESHOLD: [
{
mixerMessage: '/ch/{channel}/dyn/thr',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
RATIO: [
{
mixerMessage: '/ch/{channel}/dyn/ratio',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
DELAY_TIME: [
{
mixerMessage: '/ch/{channel}/delay/time',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
LOW: [
{
mixerMessage: '/ch/{channel}/eq/1/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
LO_MID: [
{
mixerMessage: '/ch/{channel}/eq/2/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
MID: [
{
mixerMessage: '/ch/{channel}/eq/3/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
HIGH: [
{
mixerMessage: '/ch/{channel}/eq/4/g',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
AUX_LEVEL: [
{
mixerMessage: '/ch/{channel}/mix/{argument}/level',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
CHANNEL_MUTE_ON: [
{
mixerMessage: '/ch/{channel}/mix/on',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
CHANNEL_MUTE_OFF: [
{
mixerMessage: '/ch/{channel}/mix/on',
value: 1,
type: 'f',
min: 0,
max: 1,
zero: 0,
},
],
},
Expand Down

0 comments on commit 71509ac

Please sign in to comment.