Skip to content

Commit

Permalink
feat: full ch-strip move eq to seperate function preparing EQ GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Oct 26, 2020
1 parent 6dea7fe commit b746112
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions client/components/ChanStripFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,35 @@ class ChanStripFull extends React.PureComponent<
</li>
)
}

eq() {
return (
<React.Fragment>
<hr />
<div className="horizontal">
<div className="item">
<div className="title">EQUALIZER</div>
<div className="content">
<div className="eq-group">
{window.mixerProtocol.channelTypes[0].toMixer.FX_PARAMS?.filter(
(param) => {
return fxParamsList[param.key].includes('Eq')
}
).map((param: IFxProtocol) => {
return (
<React.Fragment>
{this.fxFader(param.key)}
<p className="zero-eq">_______</p>
</React.Fragment>
)
})}
</div>
</div>
</div>
</div>
</React.Fragment>
)
}
parameters() {
if (this.props.offtubeMode) {
const hasInput =
Expand Down Expand Up @@ -571,34 +600,7 @@ class ChanStripFull extends React.PureComponent<
)}
</div>

{hasEq && (
<React.Fragment>
<hr />
<div className="horizontal">
<div className="item">
<div className="title">EQUALIZER</div>
<div className="content">
<div className="eq-group">
{window.mixerProtocol.channelTypes[0].toMixer.FX_PARAMS?.map(
(param: IFxProtocol) => {
return (
<React.Fragment>
{this.fxFader(
param.key
)}
<p className="zero-eq">
_______
</p>
</React.Fragment>
)
}
)}
</div>
</div>
</div>
</div>
</React.Fragment>
)}
{hasEq && this.eq()}
</div>
)
} else {
Expand Down

0 comments on commit b746112

Please sign in to comment.