mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Removing detune range limitation
This commit is contained in:
parent
66d216af19
commit
fe36e80f24
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ var BaseSound = new Class({
|
|||
*/
|
||||
setRate: function () {
|
||||
var cent = 1.0005777895065548; // Math.pow(2, 1/1200);
|
||||
var totalDetune = Math.max(-1200, Math.min(this.currentConfig.detune + this.manager.detune, 1200));
|
||||
var totalDetune = this.currentConfig.detune + this.manager.detune;
|
||||
var detuneRate = Math.pow(cent, totalDetune);
|
||||
this.totalRate = this.currentConfig.rate * this.manager.rate * detuneRate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue