fix changeTempo to set global tempo

This commit is contained in:
Eric Rosenbaum 2017-01-09 21:30:23 -05:00
parent d8ab835901
commit 0bd84dd9a6

View file

@ -227,7 +227,7 @@ AudioPlayer.prototype.setTempo = function (value) {
};
AudioPlayer.prototype.changeTempo = function (value) {
var newTempo = this._clamp(this.currentTempo + value, 10, 1000);
var newTempo = this._clamp(this.audioEngine.currentTempo + value, 10, 1000);
this.audioEngine.currentTempo = newTempo;
};