limit BPM change to 1~500
This commit is contained in:
@ -290,7 +290,8 @@ export class UserAPI {
|
|||||||
if (bpm === undefined)
|
if (bpm === undefined)
|
||||||
return this.app.clock.bpm
|
return this.app.clock.bpm
|
||||||
|
|
||||||
this.app.clock.bpm = bpm
|
if (bpm < 1 || bpm > 500)
|
||||||
|
this.app.clock.bpm = bpm
|
||||||
return bpm
|
return bpm
|
||||||
}
|
}
|
||||||
tempo = this.bpm
|
tempo = this.bpm
|
||||||
|
|||||||
Reference in New Issue
Block a user