Removed console.log and fixed Wrap function.

This commit is contained in:
Richard Davey 2017-06-17 04:15:02 +01:00
parent a7f46a7777
commit 5fff7c4c55
3 changed files with 2 additions and 20 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '8abd9c10-52c0-11e7-b265-8776d98a5edd'
build: '16384640-5308-11e7-8460-f5f1d2b80b32'
};
module.exports = CHECKSUM;

View file

@ -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;

View file

@ -124,7 +124,6 @@ var FX = function (ctx, config)
oscillator.onended = function ()
{
console.log('onended');
_this.pan.disconnect();
_this.volume.disconnect();
};