From 0bd84dd9a64166a6daf7adf281f0aebf2bbe367e Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 9 Jan 2017 21:30:23 -0500 Subject: [PATCH] fix changeTempo to set global tempo --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 56a8a08..2f8d4fc 100644 --- a/src/index.js +++ b/src/index.js @@ -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; };