Skip to content

Commit

Permalink
Fixed dial default values
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeoliphant committed Jul 29, 2024
1 parent e242fe1 commit 83e0447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StompboxShared/Interface/PluginInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ protected UIElement CreateControl(PluginParameter parameter)

dial.SetPointerColor(((foregroundColor.R + foregroundColor.G + foregroundColor.B) / 3) > 128 ? UIColor.Black : UIColor.White);

dial.SetValue(parameter.Value);
dial.SetValue(parameter.NormalizedValue);

dial.ValueChangedAction = delegate (double val)
{
Expand Down Expand Up @@ -394,7 +394,7 @@ protected UIElement CreateControl(PluginParameter parameter)
{
StompboxClient.Instance.SendCommand("SetParam " + Plugin.ID + " " + parameter.Name + " " + parameter.DefaultValue);

dial.SetValue(parameter.DefaultValue);
dial.SetValue(parameter.GetNormalizedValue(parameter.DefaultValue));
}
};
}
Expand Down

0 comments on commit 83e0447

Please sign in to comment.