Skip to content
Permalink
Browse files

fix for paramter changes failing to update the norns screen.

  • Loading branch information
justmat committed Feb 27, 2020
1 parent 2f24527 commit 348bb2601869bd4e3af44d65c95388030bbc6fec
Showing with 5 additions and 4 deletions.
  1. +5 −4 haven.lua
@@ -67,6 +67,11 @@ function init()
}

params:bang()

local screen_timer = metro.init()
screen_timer.time = 1 / 15
screen_timer.event = function() redraw() end
screen_timer:start()
end

function redraw()
@@ -122,7 +127,6 @@ function key(n, z)
end
-- wrap cycle around
sel = ((sel-1) % 5) + 1
redraw()
end

if n == 3 then
@@ -131,7 +135,6 @@ function key(n, z)
-- toggle feedbackSign
fdbckSign = fdbckSign * -1
engine.fdbckSign(fdbckSign)
redraw()
end
end
end
@@ -180,6 +183,4 @@ function enc(n, delta)
params:delta("rev_level", delta)
end
end

redraw()
end

0 comments on commit 348bb26

Please sign in to comment.