This file contains hidden or 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
| (function() { | |
| if (!Date.now) Date.now = function() { | |
| return +(new Date); | |
| }; | |
| try { | |
| document.createElement("div").style.setProperty("opacity", 0, ""); | |
| } catch (error) { | |
| var d3_style_prototype = CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty; | |
| d3_style_prototype.setProperty = function(name, value, priority) { | |
| d3_style_setProperty.call(this, name, value + "", priority); |
This file contains hidden or 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
| //do fast fourier transform on audio input. | |
| //with thanks to Jeffrey Clymer for allowing the use of this code | |
| var screenx=512, screeny=200, offset=10, x; | |
| var yr = new Array(512); yi = new Array(512); | |
| var n=1024, g=10, p=2*Math.PI/n, g1, l, m, k, k1, k2, k3; | |
| var y1, y2, j; | |
| var dend = "px; position:absolute; top:1px; width:2px; height:2px; font-size=1; background-color:#0000ff\'></div>" | |
| var fend = "px; position:absolute; top:1px; width:1px; height:2px; font-size=1; background-color:#0000ff\'></div>" |
NewerOlder