File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ ** Spectrogram** is a .NET library which makes it easy to create spectrograms from pre-recorded signals or live audio from the sound card.
2+
3+ ### Quickstart
4+
5+ ``` cs
6+ // load audio and process FFT
7+ var spec = new Spectrogram .Spectrogram (sampleRate : 8000 , fftSize : 2048 , step : 700 );
8+ float [] values = Spectrogram .Tools .ReadWav (" mozart.wav" );
9+ spec .AddExtend (values );
10+
11+ // convert FFT to an image and save it
12+ Bitmap bmp = spec .GetBitmap (intensity : 2 , freqHigh : 2500 );
13+ spec .SaveBitmap (bmp , " mozart.jpg" );
14+ ```
15+
16+ ![ ] ( https://raw.githubusercontent.com/swharden/Spectrogram/master/data/mozart.jpg )
17+
18+ ### Additional Resources
19+ Much more is on the Spectrogram project page:\
20+ ** [ https://github.com/swharden/Spectrogram ] ( https://github.com/swharden/Spectrogram ) **
You can’t perform that action at this time.
0 commit comments