Skip to content

Commit 14f829f

Browse files
committed
Update README.md
1 parent b8a79b0 commit 14f829f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Analytical spectrograms aimed at achieving maximum frequency resolution are pres
135135
**To visualize frequency in a way that mimics human perception** we create a spectrogram that represents lower frequencies using a large portion of the image, and condense higher frequency ranges into smaller rows of pixels toward the top of the image. The [Mel Scale](https://en.wikipedia.org/wiki/Mel_scale) is commonly used to represent power spectral density this way, and the resulting _Mel Spectrogram_ has greatly reduced vertical resolution but is a better representation of human frequency perception.
136136

137137
Cropped Linear Scale (0-3kHz) | Mel Scale (0-22 kHz)
138-
---|---|---
138+
---|---
139139
![](dev/graphics/halMel-LinearCropped.png)|![](dev/graphics/halMel-MelScale.png)
140140

141141
Amplitude perception in humans, like frequency perception, is logarithmic. Therefore, Mel spectrograms typically display log-transformed spectral power and are presented using Decibel units.
@@ -166,7 +166,7 @@ SFF files be saved using `Complex` data format (with real and imaginary values f
166166
This example creates a spectrogram but saves it using the SFF file format instead of saving it as an image. The SFF file can then be read in any language.
167167

168168
```cs
169-
(int sampleRate, double[] audio) = WavFile.ReadMono("hal.wav");
169+
(double[] audio, int sampleRate) = ReadWAV("hal.wav");
170170
var sg = new SpectrogramGenerator(sampleRate, fftSize: 4096, stepSize: 700, maxFreq: 2000);
171171
sg.Add(audio);
172172
sg.SaveData("hal.sff");

0 commit comments

Comments
 (0)