Are you looking to dive into Fourier analysis without getting lost in complex algorithms and mathematical intricacies?
Meet Oink FFT - your quick and dirty solution for Fast Fourier Transform in JavaScript.
Whether you're exploring signal processing concepts, building audio visualizations, or experimenting with frequency analysis, Oink FFT provides a simple and effective solution to get you started quickly. Dive into the world of Fourier analysis with Oink FFT and unlock the dirty secrets hidden within your data.
FFT, or Fast Fourier Transform, is a powerful algorithm used in digital signal processing to efficiently compute the Discrete Fourier Transform (DFT) of a sequence. It transforms a signal from its time-domain representation to its frequency-domain representation, revealing the underlying frequencies present in the signal.
Oink FFT is designed for simplicity and ease of use. It provides a pretty quick FFT algorithm in JavaScript, allowing you to perform frequency analysis on your data with minimal effort.
To start using Oink FFT, simply import the library into your JavaScript project and follow the intuitive API to perform FFT operations on your data.
//To use this library, you first need to include it in your project.
import * as OINK from 'https://cdn.jsdelivr.net/gh/sch1z0net/oink@v0.1.5-alpha/oink_fft.js';
//Here's how you can use the Forward FFT of size 1024
//It returns the spectrum, a Float32Array of length = 2048
//with real and imaginary values in alterning order
//[re, im, re, im, re, im ...]
let realInput = new Float32Array([/* Fill with 1024 Float Values */]);
let spectrum = OINK.fftReal1024(realInput);
console.log("FFT Result:", spectrum);
// 128 input -> 256 spectrum
let spectrum = OINK.fftReal128(realInput);
// 256 input -> 512 spectrum
let spectrum = OINK.fftReal256(realInput);
// 512 input -> 1024 spectrum
let spectrum = OINK.fftReal512(realInput);
// 1024 input -> 2048 spectrum
let spectrum = OINK.fftReal1024(realInput);
// 2048 input -> 4096 spectrum
let spectrum = OINK.fftReal2048(realInput);
Hi, I'm Sebastian.
I am diagnosed with paranoid schizophrenia.
Although this illness has taken much quality from my life,
I am still trying to stay creative and sane.
I am into coding with a certain background in computer science.
You can learn more about me on www.sch1z0.net