Reinitialize Crisp filter constants on load
Otherwise these filters are at their default coefficients when recalling previous state.
This commit is contained in:
parent
841ec96d2d
commit
87e40afd07
|
@ -333,6 +333,11 @@ impl Plugin for Crisp {
|
||||||
nih_debug_assert_eq!(bus_config.num_output_channels, NUM_CHANNELS);
|
nih_debug_assert_eq!(bus_config.num_output_channels, NUM_CHANNELS);
|
||||||
self.sample_rate = buffer_config.sample_rate;
|
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
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue