From 435fcd8106ecd5d4a815c40abdb452841c0422eb Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 24 Oct 2022 23:56:49 +0200 Subject: [PATCH] Fix CLAP modulation This was a regression introduced in c566888fa3102de1475bdaa49a8ae7ea912fdba9. --- src/params/boolean.rs | 2 +- src/params/float.rs | 2 +- src/params/integer.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/params/boolean.rs b/src/params/boolean.rs index 3ab25145..91965bec 100644 --- a/src/params/boolean.rs +++ b/src/params/boolean.rs @@ -194,7 +194,7 @@ impl ParamMut for BoolParam { .store(modulation_offset, Ordering::Relaxed); // TODO: This renormalizes this value, which is not necessary - self.set_plain_value(self.plain_value()); + self.set_plain_value(self.unmodulated_plain_value()); } fn update_smoother(&self, _sample_rate: f32, _init: bool) { diff --git a/src/params/float.rs b/src/params/float.rs index 0e75671c..48756f55 100644 --- a/src/params/float.rs +++ b/src/params/float.rs @@ -228,7 +228,7 @@ impl ParamMut for FloatParam { .store(modulation_offset, Ordering::Relaxed); // TODO: This renormalizes this value, which is not necessary - self.set_plain_value(self.plain_value()); + self.set_plain_value(self.unmodulated_plain_value()); } fn update_smoother(&self, sample_rate: f32, reset: bool) { diff --git a/src/params/integer.rs b/src/params/integer.rs index 0062c0bf..475dd123 100644 --- a/src/params/integer.rs +++ b/src/params/integer.rs @@ -208,7 +208,7 @@ impl ParamMut for IntParam { .store(modulation_offset, Ordering::Relaxed); // TODO: This renormalizes this value, which is not necessary - self.set_plain_value(self.plain_value()); + self.set_plain_value(self.unmodulated_plain_value()); } fn update_smoother(&self, sample_rate: f32, reset: bool) {