Skip to content

Commit

Permalink
use proper method
Browse files Browse the repository at this point in the history
  • Loading branch information
scazan committed Dec 30, 2019
1 parent 3c33907 commit 6610f66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions benjolis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ function enc(n, delta)
local deltaValue = util.clamp(delta, -0.01, 0.01)

if n == 1 then
-- TODO: Should I use delta()
params:set_raw("setAmp", util.clamp(params:get_raw("setAmp") + deltaValue, 0, 1))
dials[12]:set_value(params:set_raw("setAmp"))
setParam("setAmp", 12, deltaValue)
elseif n == 2 then
local paramID = paramsInList[dialGroupIndex][1]

Expand Down

0 comments on commit 6610f66

Please sign in to comment.