From 91461f1ac2aa0d532dd476ad813051c1e23f5e36 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Fri, 1 Nov 2024 09:01:57 +0100 Subject: [PATCH] make attack linear too --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3cb39f6..14c93e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -692,7 +692,7 @@ impl Plugin for Del2 { // let mute_out = self.enabled_actions.load(MUTE_OUT); // let is_muted = mute_in || mute_out; let delay_time = self.delay_data.delay_times[tap_index]; - let amp_envelope = Smoother::new(SmoothingStyle::Exponential( + let amp_envelope = Smoother::new(SmoothingStyle::Linear( self.params.global.attack_ms.value(), )); // This starts with the attack portion of the amplitude envelope @@ -1591,7 +1591,7 @@ impl Del2 { amp_envelope.set_target(sample_rate, 0.0); } else { amp_envelope.style = - SmoothingStyle::Exponential(self.params.global.attack_ms.value()); + SmoothingStyle::Linear(self.params.global.attack_ms.value()); amp_envelope.set_target(sample_rate, 1.0); } *is_muted = new_mute;