jquery.fft examples

https://github.com/hotstaff/jquery.fft

by cubicalmonkey

HTML

<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdn.rawgit.com/hotstaff/jquery.fft/master/jquery.fft.js"></script>
<body>
  <H1>jquery.fft example</H1>
  <div id="stage1"></div>
  <div id="stage2"></div>
  <div id="stage3"></div>
  <div id="console"></div>
</body>

JavaScript

$(function() {

  function out(array) {
    $("#console").html($("#console").html() + "<br/><br/>" + JSON.stringify(array));
    console.log(JSON.stringify(array));
  }
  var fft = new FFT();

  ///////////////////////////////////////////////////
  ////                INPUT DATA
  ///////////////////////////////////////////////////
  // If you test sine curve, please change flag WAVEFORM_TEST to true.
var json= ...