From d138d61e805d8ea46264d4379c271d78ec4d0086 Mon Sep 17 00:00:00 2001 From: reimu Date: Thu, 5 Oct 2023 20:08:29 -0500 Subject: [PATCH] Change delay to bpm --- src/autoplay.ts | 2 +- src/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autoplay.ts b/src/autoplay.ts index 47e1df8..ed71e39 100644 --- a/src/autoplay.ts +++ b/src/autoplay.ts @@ -58,7 +58,7 @@ autoplayEle.addEventListener("click", () => { errorEle.innerText = ""; try { const notes = inputEle.value; - const delay = parseInt(delayEle.value, 10); + const delay = 60000 / parseInt(delayEle.value, 10); if (isNaN(delay)) { throw new Error(`Invalid delay: ${delayEle.value}`); } diff --git a/src/index.html b/src/index.html index cb7f60a..26126cf 100644 --- a/src/index.html +++ b/src/index.html @@ -21,8 +21,8 @@
-