Add spectral sidechain compression to SC [2/2]
Forgot to stage this in 9550fe0d10
.
This commit is contained in:
parent
9550fe0d10
commit
14450da80a
|
@ -402,38 +402,41 @@ impl Plugin for SpectralCompressor {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
compressor_bank::ThresholdMode::Sidechain => self.stft.process_overlap_add_sidechain(
|
compressor_bank::ThresholdMode::SidechainMatch
|
||||||
buffer,
|
| compressor_bank::ThresholdMode::SidechainCompress => {
|
||||||
[&aux.inputs[0]],
|
self.stft.process_overlap_add_sidechain(
|
||||||
overlap_times,
|
buffer,
|
||||||
|channel_idx, sidechain_buffer_idx, real_fft_buffer| {
|
[&aux.inputs[0]],
|
||||||
if sidechain_buffer_idx.is_some() {
|
overlap_times,
|
||||||
process_stft_sidechain(
|
|channel_idx, sidechain_buffer_idx, real_fft_buffer| {
|
||||||
channel_idx,
|
if sidechain_buffer_idx.is_some() {
|
||||||
real_fft_buffer,
|
process_stft_sidechain(
|
||||||
&mut self.complex_fft_buffer,
|
channel_idx,
|
||||||
fft_plan,
|
real_fft_buffer,
|
||||||
&self.window_function,
|
&mut self.complex_fft_buffer,
|
||||||
&mut self.compressor_bank,
|
fft_plan,
|
||||||
input_gain,
|
&self.window_function,
|
||||||
);
|
&mut self.compressor_bank,
|
||||||
} else {
|
input_gain,
|
||||||
process_stft_main(
|
);
|
||||||
channel_idx,
|
} else {
|
||||||
real_fft_buffer,
|
process_stft_main(
|
||||||
&mut self.complex_fft_buffer,
|
channel_idx,
|
||||||
fft_plan,
|
real_fft_buffer,
|
||||||
&self.window_function,
|
&mut self.complex_fft_buffer,
|
||||||
&self.params,
|
fft_plan,
|
||||||
&mut self.compressor_bank,
|
&self.window_function,
|
||||||
input_gain,
|
&self.params,
|
||||||
output_gain,
|
&mut self.compressor_bank,
|
||||||
overlap_times,
|
input_gain,
|
||||||
first_non_dc_bin_idx,
|
output_gain,
|
||||||
)
|
overlap_times,
|
||||||
}
|
first_non_dc_bin_idx,
|
||||||
},
|
)
|
||||||
),
|
}
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.dry_wet_mixer.mix_in_dry(
|
self.dry_wet_mixer.mix_in_dry(
|
||||||
|
|
Loading…
Reference in a new issue