Skip to content

Commit

Permalink
Feat: Behringer XR protocol - remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Jun 10, 2020
1 parent 528e0ea commit 3981afc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 206 deletions.
192 changes: 0 additions & 192 deletions server/constants/mixerProtocols/behringerXrMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,120 +10,49 @@ export const BehringerXrMaster: IMixerProtocol = {
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,
},
{
mixerMessage: '/meters',
value: '/meters/6',
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 @@ -136,133 +65,68 @@ export const BehringerXrMaster: 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: [
{
mixerMessage: '/meters/6',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
CHANNEL_NAME: [
{
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 @@ -272,21 +136,11 @@ export const BehringerXrMaster: IMixerProtocol = {
CHANNEL_OUT_GAIN: [
{
mixerMessage: '/ch/{channel}/mix/fader',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
CHANNEL_NAME: [
{
mixerMessage: '/ch/{channel}/config/name',
value: 0,
type: 'f',
min: 0,
max: 1,
zero: 0.75,
},
],
PFL_ON: [emptyMixerMessage()],
Expand All @@ -295,101 +149,55 @@ export const BehringerXrMaster: 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
Loading

0 comments on commit 3981afc

Please sign in to comment.