From 8c0d66e12ddb5a6adafb48e606de19af80c587ee Mon Sep 17 00:00:00 2001 From: jill Date: Sat, 18 Sep 2021 13:57:23 +0300 Subject: [PATCH] bpm bugfix --- graph.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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