limit BPM change to 1~500

This commit is contained in:
2023-08-03 14:05:01 +02:00
parent 4614896a84
commit 231b24af85

View File

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