Skip to content

Commit

Permalink
Fix [param] bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 19, 2024
1 parent c077fda commit fcd215f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Utility/PluginParameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class PlugDataParameter final : public RangedAudioParameter {
auto const oldValue = value.load();
value = std::clamp(newValue, range.start, range.end);
sendValueChangedMessageToListeners(getValue());
valueChanged = oldValue != value;
valueChanged = valueChanged || (oldValue != value);
}

float getValue() const override
Expand All @@ -147,7 +147,7 @@ class PlugDataParameter final : public RangedAudioParameter {
auto const range = getNormalisableRange();
auto const oldValue = value.load();
value = range.convertFrom0to1(newValue);
valueChanged = oldValue != value;
valueChanged = valueChanged || (oldValue != value);
}

float getDefaultValue() const override
Expand Down

0 comments on commit fcd215f

Please sign in to comment.