Skip to content

Commit

Permalink
fix math.exp
Browse files Browse the repository at this point in the history
  • Loading branch information
dndrks committed Jan 15, 2024
1 parent 4f2afc1 commit 96e5701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/acquaintances.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function init()
end

function update_speeds(v)
local freq = math.exp(2, -(v+offset))
local freq = 2^(-(v+offset))
local intone = math.min(5, math.max(-5, input[2].volts / 5))
if intone >= 0 then
for n=1,4 do
Expand Down

0 comments on commit 96e5701

Please sign in to comment.