Call init()
before using beatsPerMinute
.
This commit is contained in:
parent
2cc0523f9a
commit
b24b65abcd
@ -162,6 +162,7 @@ namespace music {
|
||||
//% help=music/change-tempo weight=39
|
||||
//% blockId=device_change_tempo block="change tempo by (bpm)|%value" blockGap=8
|
||||
export function changeTempoBy(bpm: number): void {
|
||||
init();
|
||||
setTempo(beatsPerMinute + bpm);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user