Skip to content

Commit

Permalink
feat: Midas/X32 - Input gain trim in full channel view
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Feb 22, 2021
1 parent 8fd1167 commit 6e3ccbc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/components/ChanStripFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,18 @@ class ChanStripFull extends React.PureComponent<
</React.Fragment>
)}
<React.Fragment>
{this.doesParamExists(fxParamsList.GainTrim) ? (
<div className="item">
<div className="title">GAIN TRIM</div>
<div className="content">
{this.fxParamFader(
fxParamsList.GainTrim
)}
</div>
</div>
) : (
<React.Fragment></React.Fragment>
)}
{this.doesParamExists(fxParamsList.CompThrs) ? (
<div className="item">
<div className="title">COMPRESSOR</div>
Expand Down
1 change: 1 addition & 0 deletions server/constants/MixerProtocolInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum fxParamsList {
EqQ03,
EqQ04,
DelayTime,
GainTrim,
CompThrs,
CompRatio,
CompKnee,
Expand Down
21 changes: 21 additions & 0 deletions server/constants/mixerProtocols/midasMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const MidasMaster: IMixerProtocol = {
mixerMessage: '/ch/{channel}/mix/{argument}/level',
type: 'aux',
},
{
mixerMessage: '/ch/{channel}/preamp/trim',
},
{
mixerMessage: '/ch/{channel}/dyn/thr',
},
Expand Down Expand Up @@ -130,6 +133,15 @@ export const MidasMaster: IMixerProtocol = {
CHANNEL_NAME: [emptyMixerMessage()], //[{ mixerMessage: '/ch/{channel}/config/name', value: 0, type: 'f', min: 0, max: 1, zero: 0.75}],
PFL: [emptyMixerMessage()],
NEXT_SEND: [emptyMixerMessage()],
[fxParamsList.GainTrim]: [
{
mixerMessage: '/ch/{channel}/preamp/trim',
minLabel: -18,
maxLabel: 18,
label: 'Gain Trim',
valueLabel: ' dB',
},
],
[fxParamsList.CompThrs]: [
{
mixerMessage: '/ch/{channel}/dyn/thr',
Expand Down Expand Up @@ -333,6 +345,15 @@ export const MidasMaster: IMixerProtocol = {
PFL_ON: [emptyMixerMessage()],
PFL_OFF: [emptyMixerMessage()],
NEXT_SEND: [emptyMixerMessage()],
[fxParamsList.GainTrim]: [
{
mixerMessage: '/ch/{channel}/preamp/trim',
minLabel: -18,
maxLabel: 18,
label: 'Gain Trim',
valueLabel: ' dB',
},
],
[fxParamsList.CompThrs]: [
{
mixerMessage: '/ch/{channel}/dyn/thr',
Expand Down

0 comments on commit 6e3ccbc

Please sign in to comment.