fix: preset renaming

This commit is contained in:
2026-09-13 17:13:03 +02:00
parent 8c0b272ab9
commit 4f2bce1f5f
5 changed files with 26 additions and 28 deletions
@@ -151,7 +151,7 @@ function DSP408Panel({ dsp, api }: { dsp: DSP408; api: DSP408Api }) {
return (
<ChannelSection
dsp={dsp}
channel={{Input: InputChannel.InA}}
channel={{ Input: InputChannel.InA }}
setLowPass={api.setLowPass}
setHighPass={api.setHighPass}
setPeq={api.setPeqBand}
@@ -163,7 +163,7 @@ function DSP408Panel({ dsp, api }: { dsp: DSP408; api: DSP408Api }) {
return (
<ChannelSection
dsp={dsp}
channel={{Input: InputChannel.InB}}
channel={{ Input: InputChannel.InB }}
setLowPass={api.setLowPass}
setHighPass={api.setHighPass}
setPeq={api.setPeqBand}
@@ -175,7 +175,7 @@ function DSP408Panel({ dsp, api }: { dsp: DSP408; api: DSP408Api }) {
return (
<ChannelSection
dsp={dsp}
channel={{Input: InputChannel.InC}}
channel={{ Input: InputChannel.InC }}
setLowPass={api.setLowPass}
setHighPass={api.setHighPass}
setPeq={api.setPeqBand}
@@ -187,7 +187,7 @@ function DSP408Panel({ dsp, api }: { dsp: DSP408; api: DSP408Api }) {
return (
<ChannelSection
dsp={dsp}
channel={{Input: InputChannel.InD}}
channel={{ Input: InputChannel.InD }}
setLowPass={api.setLowPass}
setHighPass={api.setHighPass}
setPeq={api.setPeqBand}
@@ -199,7 +199,7 @@ function DSP408Panel({ dsp, api }: { dsp: DSP408; api: DSP408Api }) {
return (
<ChannelSection
dsp={dsp}
channel={{Output: OutputChannel.Out1}}
channel={{ Output: OutputChannel.Out1 }}
setLowPass={api.setLowPass}
setHighPass={api.setHighPass}
setPeq={api.setPeqBand}
@@ -459,9 +459,7 @@ function ChannelSection({
const ActiveLowPassFilter = activeChannelState.crossover.low_pass;
const ActivePeq = activeChannelState.peq_chain;
const bandsOrder = isInput
? PEQ_BANDS_ORDER.slice(0, -1)
: PEQ_BANDS_ORDER;
const bandsOrder = isInput ? PEQ_BANDS_ORDER.slice(0, -1) : PEQ_BANDS_ORDER;
const handleResetPeq = async () => {
if (resetting) return;