diff --git a/graph.lua b/graph.lua index 4f1b771..a65818c 100644 --- a/graph.lua +++ b/graph.lua @@ -37,7 +37,7 @@ function self.update(dt) local mx, my = love.mouse.getPosition() if not (love.mouse.isDown(1) and mx > x and mx < x + w and my > y and my < y + h) then - timer = (timer + dt * (slider.kvalue('bpm')/120)) % 2 + timer = (timer + dt * ((slider.kvalue('bpm') or 120)/120)) % 2 else timer = mix(timer, (mx - x) / w, dt * 14) end