Skip to content

Commit 83a13ea

Browse files
committed
Create readme.md
1 parent a770819 commit 83a13ea

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Spectrogram/readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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)**

0 commit comments

Comments
 (0)