Skip to content

Commit 5fff7c4

Browse files
committed
Removed console.log and fixed Wrap function.
1 parent a7f46a7 commit 5fff7c4

3 files changed

Lines changed: 2 additions & 20 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '8abd9c10-52c0-11e7-b265-8776d98a5edd'
2+
build: '16384640-5308-11e7-8460-f5f1d2b80b32'
33
};
44
module.exports = CHECKSUM;

v3/src/math/Wrap.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,7 @@ var Wrap = function (value, min, max)
22
{
33
var range = max - min;
44

5-
if (range <= 0)
6-
{
7-
return 0;
8-
}
9-
10-
if (value >= min && value <= max)
11-
{
12-
return value;
13-
}
14-
15-
var result = (value - min) % range;
16-
17-
if (result < 0)
18-
{
19-
result += range;
20-
}
21-
22-
return result + min;
5+
return (min + ((((value - min) % range) + range) % range));
236
};
247

258
module.exports = Wrap;

v3/src/sound/dynamic/FX.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ var FX = function (ctx, config)
124124

125125
oscillator.onended = function ()
126126
{
127-
console.log('onended');
128127
_this.pan.disconnect();
129128
_this.volume.disconnect();
130129
};

0 commit comments

Comments
 (0)