Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 621 Bytes

README.md

File metadata and controls

25 lines (13 loc) · 621 Bytes

mdsplib

DFT & FFT / iFFT & STFT / iSTFT lib

Some examples:

  1. generic DFT on a Saw signal:

Complex saw = Generate.Saw(440, 44100, 345, 1000).DFT();

  1. Create 1024 sample of a simple sine wave at 110Hz, 11000Hz sampling frequency:

double[] sine = Generate.Sine(110, 11000,1024);

  1. FFT on Hann windowed square wave:

Complex[] spectrum = Generate.Square(110,11000,1024,1000).Window(Window.Type.Hann).FFT();

  1. Reconstruction of signal:

double[] reconst = Generate.Square(110,11000,1024,1000).Window(Window.Type.Hann).FFT().iFFT().RealPart();

STFT: Generate.Square(110,11000,1023,1000).Window().STFT().iSTFT()