You are reading a single comment by @user73560 and its replies. Click here to read the full conversation.
  • Hi @Gordon,
    1) You mean this code can still measure 500Hz with lower accuracy ?

    var w = new Waveform(512,{doubleBuffer:true,bits:16}­);
    var a = new Uint16Array(512);
    w.on("buffer", function(buf) {
      a.set(buf);
      E.FFT(a);
      var m=0,n=-1;
      for (var i=100;i<500;i++)if(a[i]>n)n=a[m=i];
      console.log(m.toFixed(0)+"Hz @ "+n);
    });
    w.startInput(D2,512,{repeat:true});
    

    2) Is it possible to use 1024 buffer size on behalf of other functionalities ?

About

Avatar for user73560 @user73560 started