feat: disable inputs if peq dont use them
This commit is contained in:
@@ -97,9 +97,7 @@ function getInputChannelCurves(
|
||||
): ChannelCurves {
|
||||
const gain = liveGain ?? state.gain;
|
||||
|
||||
const geqValues = GEQ_BANDS_LABEL.map(
|
||||
({ frequency }) => state.geq.gains[frequency] ?? 0
|
||||
);
|
||||
const geqValues = GEQ_BANDS_LABEL.map(({ frequency }) => state.geq.gains[frequency] ?? 0);
|
||||
|
||||
const geq = state.geq.bypass
|
||||
? []
|
||||
@@ -109,17 +107,9 @@ function getInputChannelCurves(
|
||||
q: GEQ_CURVE_Q,
|
||||
});
|
||||
|
||||
const peqCrossover = getPeqCrossoverPoints(
|
||||
freqs,
|
||||
state.peq_chain,
|
||||
state.crossover
|
||||
);
|
||||
const peqCrossover = getPeqCrossoverPoints(freqs, state.peq_chain, state.crossover);
|
||||
|
||||
const total = sumCurvePoints([
|
||||
geq,
|
||||
peqCrossover,
|
||||
getGainCurvePoints(freqs, gain),
|
||||
]);
|
||||
const total = sumCurvePoints([geq, peqCrossover, getGainCurvePoints(freqs, gain)]);
|
||||
|
||||
return { geq, peqCrossover, total };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user