diff --git a/v3/src/checksum.js b/v3/src/checksum.js index 5d2c6fc6e..4aeb62539 100644 --- a/v3/src/checksum.js +++ b/v3/src/checksum.js @@ -1,4 +1,4 @@ var CHECKSUM = { -build: '8abd9c10-52c0-11e7-b265-8776d98a5edd' +build: '16384640-5308-11e7-8460-f5f1d2b80b32' }; module.exports = CHECKSUM; \ No newline at end of file diff --git a/v3/src/math/Wrap.js b/v3/src/math/Wrap.js index 459514ce2..511bd6d55 100644 --- a/v3/src/math/Wrap.js +++ b/v3/src/math/Wrap.js @@ -2,24 +2,7 @@ var Wrap = function (value, min, max) { var range = max - min; - if (range <= 0) - { - return 0; - } - - if (value >= min && value <= max) - { - return value; - } - - var result = (value - min) % range; - - if (result < 0) - { - result += range; - } - - return result + min; + return (min + ((((value - min) % range) + range) % range)); }; module.exports = Wrap; diff --git a/v3/src/sound/dynamic/FX.js b/v3/src/sound/dynamic/FX.js index 28c9a60af..6ac5ad8c3 100644 --- a/v3/src/sound/dynamic/FX.js +++ b/v3/src/sound/dynamic/FX.js @@ -124,7 +124,6 @@ var FX = function (ctx, config) oscillator.onended = function () { - console.log('onended'); _this.pan.disconnect(); _this.volume.disconnect(); };