Fix changeTempo() calculation

This commit is contained in:
Shigeru KANEMOTO 2016-08-18 22:00:43 +09:00
parent a78f7f9601
commit 2cc0523f9a

View File

@ -162,7 +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 {
setTempo(beat(BeatFraction.Whole) + bpm);
setTempo(beatsPerMinute + bpm);
}
/**