indutny / fft.js

The fastest JS Radix-4/Radix-2 FFT implementation
278 stars 31 forks source link

An example would be nice... #22

Closed Zibri closed 1 year ago

Zibri commented 1 year ago

I have an array of 512 different amplitude values, the values are sampled 60 times per second. How can I know the main (stronger) frequency?

As of now I did: f=new FFT(512); input=f.toComplexArray(MYARRAY); out=Array(1024); f.transform(out,input);

what then?

Bobingstern commented 1 year ago

out now contains the transformed values