Skip to content

Commit

Permalink
off by one error in value conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Sep 1, 2024
1 parent e82e4d7 commit aed3477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detail/vst3/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Vst3Parameter : public Steinberg::Vst::Parameter
{
if (info.stepCount > 0)
{
return (vst3value * info.stepCount + 1) + min_value;
return (vst3value * info.stepCount) + min_value;
}
return (vst3value * (max_value - min_value)) + min_value;
}
Expand Down

0 comments on commit aed3477

Please sign in to comment.