bpm bugfix

This commit is contained in:
jill 2021-09-18 13:57:23 +03:00
parent 9080dd7607
commit 8c0d66e12d

View file

@ -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