From 231b24af850363110674d99051fb98575ec1dfbf Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Thu, 3 Aug 2023 14:05:01 +0200 Subject: [PATCH] limit BPM change to 1~500 --- src/API.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/API.ts b/src/API.ts index ad75338..071f711 100644 --- a/src/API.ts +++ b/src/API.ts @@ -290,7 +290,8 @@ export class UserAPI { if (bpm === undefined) return this.app.clock.bpm - this.app.clock.bpm = bpm + if (bpm < 1 || bpm > 500) + this.app.clock.bpm = bpm return bpm } tempo = this.bpm