Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 744 Bytes

File metadata and controls

20 lines (15 loc) · 744 Bytes

Spectrogram is a .NET library which makes it easy to create spectrograms from pre-recorded signals or live audio from the sound card.

Quickstart

// load audio and process FFT
var spec = new Spectrogram.Spectrogram(sampleRate: 8000, fftSize: 2048, step: 700);
float[] values = Spectrogram.Tools.ReadWav("mozart.wav");
spec.AddExtend(values);

// convert FFT to an image and save it
Bitmap bmp = spec.GetBitmap(intensity: 2, freqHigh: 2500);
spec.SaveBitmap(bmp, "mozart.jpg");

Additional Resources

Much more is on the Spectrogram project page:
https://github.com/swharden/Spectrogram