This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var zapTable = { | |
1: [75, 40], | |
2: [125, 45], | |
3: [175, 50], | |
4: [238, 55], | |
5: [300, 60], | |
6: [400, 65], | |
7: [500, 70], | |
8: [600, 75] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
2) Inject params into scope -- even faster | |
.. | |
// Create a class method 'process' which accepts params for imag and real | |
FFT.process(signalData, imag, real) { | |
// work with real and imag | |
.. | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// detect whether __proto__ is supported in this browser | |
var __proto_supported__ = false; | |
try | |
{ | |
__proto_supported__ = ({}).__proto__; | |
} catch (e) { /* failed, so stays false */ } | |
if (typeof Object.create !== 'function') | |
{ | |
Object.create = function (o) |
NewerOlder