1
0
Fork 0

Reinitialize Crisp filter constants on load

Otherwise these filters are at their default coefficients when recalling
previous state.
This commit is contained in:
Robbert van der Helm 2022-11-11 03:12:41 +01:00
parent 841ec96d2d
commit 87e40afd07

View file

@ -333,6 +333,11 @@ impl Plugin for Crisp {
nih_debug_assert_eq!(bus_config.num_output_channels, NUM_CHANNELS);
self.sample_rate = buffer_config.sample_rate;
// The filter coefficients need to be reinitialized when loading a patch
self.update_rm_input_lpf();
self.update_noise_hpf();
self.update_noise_lpf();
true
}