Spectrogram 1.0.1

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

Install-Package Spectrogram -Version 1.0.1
dotnet add package Spectrogram --version 1.0.1
<PackageReference Include="Spectrogram" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spectrogram --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

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

Release Notes

https://github.com/swharden/Spectrogram/releases

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 102 8/26/2019
1.0.0 57 8/25/2019
0.0.1 54 8/16/2019