feat: disable inputs if peq dont use them

This commit is contained in:
2026-09-23 20:03:39 +02:00
parent e1d6398d57
commit d48155683b
12 changed files with 174 additions and 110 deletions
@@ -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 };
}