Skip to content

mrmandrake/mdsplib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

c# lightweight dsp class library .net standard 2.0

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages