diff --git a/Cargo.lock b/Cargo.lock index ba8b089..91c2bb4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -385,7 +385,7 @@ checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35" [[package]] name = "dcc" -version = "0.1.2" +version = "0.1.3" dependencies = [ "nih_plug", "nih_plug_iced", diff --git a/Cargo.toml b/Cargo.toml index fd9b954..9e9dc12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dcc" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "GPL-3.0-only" diff --git a/src/lib.rs b/src/lib.rs index 39e5dd7..46d4ce5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,7 +131,7 @@ impl Plugin for Dcc { for sample in channel_samples { *sample = (((*sample).mul_add(pregain, offset - skew).clamp(-1.0, 1.0) - - (offset - skew)) + - (offset - skew).clamp(-1.0, 1.0)) * postgain) .clamp(-1.0, 1.0);