Skip to content

Commit fe36e80

Browse files
Removing detune range limitation
1 parent 66d216a commit fe36e80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/BaseSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ var BaseSound = new Class({
274274
*/
275275
setRate: function () {
276276
var cent = 1.0005777895065548; // Math.pow(2, 1/1200);
277-
var totalDetune = Math.max(-1200, Math.min(this.currentConfig.detune + this.manager.detune, 1200));
277+
var totalDetune = this.currentConfig.detune + this.manager.detune;
278278
var detuneRate = Math.pow(cent, totalDetune);
279279
this.totalRate = this.currentConfig.rate * this.manager.rate * detuneRate;
280280
}

0 commit comments

Comments
 (0)