Skip to content

Commit

Permalink
make attack linear too
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Nov 1, 2024
1 parent cbd6723 commit 91461f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 91461f1

Please sign in to comment.