Skip to content

Commit

Permalink
bring back linear release
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Oct 30, 2024
1 parent b86d691 commit a5b01f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ impl Del2 {
}) => {
*releasing = true;
amp_envelope.style =
SmoothingStyle::Exponential(self.params.global.release_ms.value());
SmoothingStyle::Linear(self.params.global.release_ms.value());
amp_envelope.set_target(sample_rate, 0.0);
}
_ => (),
Expand All @@ -1898,7 +1898,7 @@ impl Del2 {
// *releasing = true; // we don't want the tap to stop existing after the release is done
if mute {
amp_envelope.style =
SmoothingStyle::Exponential(self.params.global.release_ms.value());
SmoothingStyle::Linear(self.params.global.release_ms.value());
amp_envelope.set_target(sample_rate, 0.0);
} else {
amp_envelope.style =
Expand Down Expand Up @@ -1932,7 +1932,7 @@ impl Del2 {
{
// *releasing = true; // we don't want the tap to stop existing after the release is done
amp_envelope.style =
SmoothingStyle::Exponential(self.params.global.release_ms.value());
SmoothingStyle::Linear(self.params.global.release_ms.value());
amp_envelope.set_target(sample_rate, 0.0);

// If this targeted a single delay tap ID, we're done here. Otherwise there may be
Expand Down Expand Up @@ -1970,7 +1970,7 @@ impl Del2 {
{
*releasing = true;
amp_envelope.style =
SmoothingStyle::Exponential(self.params.global.release_ms.value());
SmoothingStyle::Linear(self.params.global.release_ms.value());
amp_envelope.set_target(sample_rate, 0.0);

// If this targeted a single delay tap ID, we're done here. Otherwise there may be
Expand Down

0 comments on commit a5b01f0

Please sign in to comment.